app/helpers/washout_builder_method_arguments_helper.rb
# displayes an argument of a method as complex type and determines if is an array of types or not
#
# @param [Array] pre Array that contains the content that will be appended to the xml
# @param [WashOut::Param] param the parameter what needs to be displayed
# @param [Bololean] use_spacer  Determines if we need a spacer when appending the html or not
# @param [String] spacer  the spacer that needs to be prepended if use_spacer is true
# @param [Class] complex_class  The name of the complex type
#
# @return [void]
#
# @api public
displayes an argument of a method as complex type and determines if is an array of types or not
displayes an argument of a method as complex type and determines if is an array of types or not
def create_method_argument_complex_element(pre, param, use_spacer, spacer, complex_class)
    return if complex_class.nil?
    real_class = find_correct_complex_type(complex_class)
    argument_content = param.multiplied ? "Array of #{real_class}" : "#{real_class}"
    pre << "#{use_spacer ? spacer : ''}<a href='##{real_class}'><span class='lightBlue'>#{argument_content}</span></a>&nbsp;<span class='bold'>#{param.name}</span>"
  end
def create_method_argument_complex_element ( pre , param , use_spacer , spacer , complex_class ) return if complex_class . nil? real_class = find_correct_complex_type ( complex_class ) argument_content = param . multiplied ? "Array of #{real_class}" : "#{real_class}" pre << "#{use_spacer ? spacer : ''}<a href='##{real_class}'><span class='lightBlue'>#{argument_content}</span></a>&nbsp;<span class='bold'>#{param.name}</span>" end
displayes an argument of a method as complex type and determines if is an array of types or not
displayes an argument of a method as complex type and determines if is an array of types or not
None
void
pre
<not_specific>
param
<not_specific>
use_spacer
<not_specific>
spacer
<not_specific>
complex_class
<not_specific>
<not_specific>
complex_class The name of the complex type
complex_class The name of the complex type
api
None