Object
# File lib/rest.rb, line 76 def add_child c @children.push c c.parent = self c.level = @level + 1 end
# File lib/rest.rb, line 109 def all_children type @result = Array.new @children.each do |child| if ( child.class == type ) @result.push child end @result.concat( child.all_children( type ) ) end @result end
# File lib/rest.rb, line 82 def print printer printer.do_print self end
# File lib/rest.rb, line 86 def print_children printer if ( @children ) @children.each do |child| child.print printer end end end
Generated with the Darkfish Rdoc Generator 2.