Module: WashoutBuilderMethodListHelper
- Defined in:
- app/helpers/washout_builder_method_list_helper.rb
Instance Method Summary collapse
- #create_return_complex_type_list_html(xml, complex_class, builder_out) ⇒ Object
- #create_return_type_list_html(xml, output) ⇒ Object
Instance Method Details
#create_return_complex_type_list_html(xml, complex_class, builder_out) ⇒ Object
5 6 7 8 |
# File 'app/helpers/washout_builder_method_list_helper.rb', line 5 def create_return_complex_type_list_html(xml, complex_class, builder_out) return_content = builder_out[0].multiplied == false ? "#{complex_class}" : "Array of #{complex_class}" xml.span("class" => "pre") { xml.a("href" => "##{complex_class}") { |xml| xml.span("class" => "lightBlue") { |y| y<<"#{return_content}" } } } end |
#create_return_type_list_html(xml, output) ⇒ Object
11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
# File 'app/helpers/washout_builder_method_list_helper.rb', line 11 def create_return_type_list_html(xml, output) unless output.nil? complex_class = output[0].get_complex_class_name if WashoutBuilder::Type::BASIC_TYPES.include?(output[0].type) xml.span("class" => "pre") { |xml| xml.span("class" => "blue") { |sp| sp << "#{output[0].type}" } } else create_return_complex_type_html(xml, complex_class, output) unless complex_class.nil? end else xml.span("class" => "pre") { |sp| sp << "void" } end end |