Class: Nokogiri::XML::Node

Inherits:
Object
  • Object
show all
Defined in:
lib/isodoc/itu/presentation_xml_convert.rb

Instance Method Summary collapse

Instance Method Details

#traverse_topdown {|_self| ... } ⇒ Object

Yields:

  • (_self)

Yield Parameters:



13
14
15
16
# File 'lib/isodoc/itu/presentation_xml_convert.rb', line 13

def traverse_topdown(&block)
  yield(self)
  children.each { |j| j.traverse_topdown(&block) }
end