vendor/bundle/ruby/2.6.0/gems/commonmarker-0.23.4/lib/commonmarker/node.rb
# Public: An iterator that "walks the tree," descending into children recursively.
#
# blk - A {Proc} representing the action to take for each child
An iterator that "walks the tree," descending into children recursively.
blk - A {Proc} representing the action to take for each child
An iterator that " walks the tree " descending into children recursively . blk - A { Proc } representing the action to take for each child
def walk(&block)
      return enum_for(:walk) unless block
      yield self
      each do |child|
        child.walk(&block)
      end
    end
def walk ( & block ) return enum_for ( :walk ) unless block yield self each do | child | child . walk ( & block ) end end
Public: An iterator that "walks the tree," descending into children recursively.
Public : An iterator that " walks the tree " descending into children recursively .
block