app/helpers/washout_builder_method_list_helper.rb
# this method will create the return type of the method and check if the type is basic or complex type or array of types
#
# @param [Builder::XmlMarkup] xml the markup builder that is used to insert HTML line breaks or span elements
# @param [Array] complex_class  The array that holds the html that will be appended to the xml
# @param [Array<WashOut::Param>] builder_out  An array of params ( will contain a single position in the array) this is used to determine if the class is an array or not
#
# @return [String]
#
# @api public
this method will create the return type of the method and check if the type is basic or complex type or array of types
this method will create the return type of the method and check if the type is basic or complex type or array of types
def create_return_complex_type_list_html(xml, complex_class, builder_out)
    real_class = find_correct_complex_type(complex_class)
    return_content = builder_out[0].multiplied ?  "Array of #{real_class}" : "#{real_class}"
    xml.span('class' => 'pre') do
      xml.a('href' => "##{real_class}") do |inner_xml|
        inner_xml.span('class' => 'lightBlue') do |y|
          y << "#{return_content}"
        end
      end
    end
  end
def create_return_complex_type_list_html ( xml , complex_class , builder_out ) real_class = find_correct_complex_type ( complex_class ) return_content = builder_out [ 0 ] . multiplied ? "Array of #{real_class}" : "#{real_class}" xml . span ( 'class' => 'pre' ) do xml . a ( 'href' => "##{real_class}" ) do | inner_xml | inner_xml . span ( 'class' => 'lightBlue' ) do | y | y << "#{return_content}" end end end end
this method will create the return type of the method and check if the type is basic or complex type or array of types
this method will create the return type of the method and check if the type is basic or complex type or array of types
None
String
xml
<not_specific>
complex_class
<not_specific>
builder_out
<not_specific>
<not_specific>
builder_out An array of params ( will contain a single position in the array) this is used to determine if the class is an array or not
builder_out An array of params ( will contain a single position in the array ) this is used to determine if the class is an array or not
api
None