# File lib/rest.rb, line 381 def indent node node.level.times do printf " " end end
# File lib/rest.rb, line 439 def print_body body indent body puts "Body: " + body.name end
# File lib/rest.rb, line 420 def print_host host indent host puts "HOST_DEF: " + host.name end
# File lib/rest.rb, line 415 def print_parameter parameter indent parameter puts "PARAMETER_DEF: " + parameter.name + " - " + parameter.description end
# File lib/rest.rb, line 393 def print_request request indent request puts "Request: " + request.to_s host = request.host if ( host ) indent host puts " HOST: " + host.name end request.parameters.each do |p| indent request puts " PARAMETER: #{p.to_s}" end request.print_children self end
# File lib/rest.rb, line 425 def print_result result indent result puts "Result: " + result.name end
# File lib/rest.rb, line 387 def print_section section indent section puts "SECTION " + section.to_s section.print_children self end
Generated with the Darkfish Rdoc Generator 2.