lib/glyph/node.rb in glyph-0.4.2 vs lib/glyph/node.rb in glyph-0.5.0

- old
+ new

@@ -1,5 +1,8 @@ +# encoding: utf-8 + +# Core Hash class. class Hash # Converts self to a Node # @return [Node] the converted Node def to_node @@ -83,10 +86,9 @@ end # Iterates through children recursively (including self) # @param [Node, nil] element the node to process - # @yieldparam [Integer] level the initial tree depth # @yieldparam [Node] element the current node # @yieldparam [Integer] level the current tree depth def descend(element=nil, level=0, &block) element ||= self yield element, level