app/helpers/washout_builder_method_arguments_helper.rb
# displays the parameter of a method as argument and determines if the parameter is basic type or complex type
#
# @see WashoutBuilder::Document::ComplexType#find_complex_class_name
# @see #create_method_argument_complex_element
# @see WashoutBuilder::Type::BASIC_TYPES
#
# @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 [Integer] mlen  Determines if we need a spacer when appending the html or not
#
# @return [void]
#
# @api public
displays the parameter of a method as argument and determines if the parameter is basic type or complex type
displays the parameter of a method as argument and determines if the parameter is basic type or complex type
def create_method_argument_element(pre, param, mlen)
    spacer = '&nbsp;&nbsp;&nbsp;&nbsp;'
    complex_class = param.find_complex_class_name
    use_spacer = mlen > 1 ? true : false
    if WashoutBuilder::Type::BASIC_TYPES.include?(param.type)
      pre << "#{use_spacer ? spacer : ''}<span class='blue'>#{param.type}</span>&nbsp;<span class='bold'>#{param.name}</span>"
    else
      create_method_argument_complex_element(pre, param, use_spacer, spacer, complex_class)
    end
  end
def create_method_argument_element ( pre , param , mlen ) spacer = '&nbsp;&nbsp;&nbsp;&nbsp;' complex_class = param . find_complex_class_name use_spacer = mlen > 1 ? true : false if WashoutBuilder :: Type :: BASIC_TYPES . include? ( param . type ) pre << "#{use_spacer ? spacer : ''}<span class='blue'>#{param.type}</span>&nbsp;<span class='bold'>#{param.name}</span>" else create_method_argument_complex_element ( pre , param , use_spacer , spacer , complex_class ) end end
displays the parameter of a method as argument and determines if the parameter is basic type or complex type
displays the parameter of a method as argument and determines if the parameter is basic type or complex type
None
void
pre
<not_specific>
param
<not_specific>
mlen
<not_specific>
<not_specific>
mlen Determines if we need a spacer when appending the html or not
mlen Determines if we need a spacer when appending the html or not
see
None
see
None
see
None
api
None