Sha256: 33ad83ed85f5351eab800f1582767b46a5e8c20742fb9e124d58608347824adb

Contents?: true

Size: 901 Bytes

Versions: 5

Compression:

Stored size: 901 Bytes

Contents

module WashoutBuilderMethodListHelper
  
 
  
  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

  
  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  
    
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
washout_builder-0.13.9 app/helpers/washout_builder_method_list_helper.rb
washout_builder-0.13.8 app/helpers/washout_builder_method_list_helper.rb
washout_builder-0.13.7 app/helpers/washout_builder_method_list_helper.rb
washout_builder-0.13.4 app/helpers/washout_builder_method_list_helper.rb
washout_builder-0.13.5 app/helpers/washout_builder_method_list_helper.rb