Ruby Library for Razorback 7/14/2011
# File lib/razorback.rb, line 11 def Razorback.register(id, type, *types) puts "<?xml version=\"1.0\"?>" puts "<razorback>\n\t<registration>" puts "\t\t<nugget_id>#{id}</nugget_id>" puts "\t\t<application_type>#{type}</application_type>" puts "\t\t<data_types>" types.each{|i| puts "\t\t\t<data_type>#{i}</data_type>"} puts "\t\t</data_types>" puts "\t</registration>\n</razorback>" end
Generated with the Darkfish Rdoc Generator 2.