Skip to content

Commit

Permalink
Rename each_attributs to each_attribut
Browse files Browse the repository at this point in the history
  • Loading branch information
glejeune committed Nov 17, 2010
1 parent 320709c commit d89f42d
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.rdoc
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ Interface to the GraphViz graphing tool
== CHANGELOG

=== 0.9.20 :
* Add GraphViz#each_attributs, Node#each_attributs and Edge#each_attributs
* Add GraphViz#each_attribut, Node#each_attribut and Edge#each_attribut

=== 0.9.19 :
* Add strict digraph support (by Jonas Elfström) (see sample58.rb)
Expand Down
2 changes: 1 addition & 1 deletion lib/graphviz.rb
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,7 @@ def []( xAttrName )
# Calls block once for each attribut of the graph, passing the name and value to the
# block as a two-element array.
#
def each_attributs(&b)
def each_attribut(&b)
@graph.each do |k,v|
yield(k,v)
end
Expand Down
2 changes: 1 addition & 1 deletion lib/graphviz/edge.rb
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ def []( xAttrName )
#
# If global is set to false, the block does not receive the attributs set globally
#
def each_attributs(global = true, &b)
def each_attribut(global = true, &b)
attrs = @oAttrEdge.to_h
if global
attrs = pg.edge.to_h.merge attrs
Expand Down
2 changes: 1 addition & 1 deletion lib/graphviz/node.rb
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ def []( xAttrName )
#
# If global is set to false, the block does not receive the attributs set globally
#
def each_attributs(global = true, &b)
def each_attribut(global = true, &b)
attrs = @oAttrNode.to_h
if global
attrs = pg.node.to_h.merge attrs
Expand Down

0 comments on commit d89f42d

Please sign in to comment.