# File lib/rest.rb, line 106 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