node.rb
# Calls gen on all children of class cls (if given,
# all otherwise).
# If there is a block, it's called between two children
Calls gen on all children of class cls (if given,
all otherwise).
If there is a block, it's called between two children
Calls gen on all children of class cls ( if given all otherwise ) . If there is a block it ' s called between two children
def gen_children(cls = nil)
    first = true
    for child in children
      if (cls.nil? or child.one_of_classes?(cls)) and not child.already_generated
        yield if block_given? and not first
        first = false
        child.gen
      end
    end
  end
def gen_children ( cls = nil ) first = true for child in children if ( cls . nil? or child . one_of_classes? ( cls ) ) and not child . already_generated yield if block_given? and not first first = false child . gen end end end
Calls gen on all children of class cls (if given,
all otherwise).
Calls gen on all children of class cls ( if given all otherwise ) .
cls
<not_specific>