app/helpers/washout_builder_complex_type_helper.rb
# this method is for printing the attributes of a complex type
# if the attributes are primitives this will show the attributes with  blue color
# otherwise will call another method for printing the complex attribute
# @see WashoutBuilder::Type::BASIC_TYPES
# @see #create_complex_element_type_html
#
# @param [Array] pre Array that contains the content that will be appended to the xml element li
# @param [WashOut::Param] element  the element that needs to be printed
#
# @return [void]
#
# @api public
this method is for printing the attributes of a complex type
if the attributes are primitives this will show the attributes with  blue color
otherwise will call another method for printing the complex attribute
this method is for printing the attributes of a complex type if the attributes are primitives this will show the attributes with blue color otherwise will call another method for printing the complex attribute
def create_element_type_html(pre, element, element_description)
    element_description = element_description.blank? ? nil : element_description.fetch(element.name.to_s.downcase, '')
    element.type = 'string' if element.type == 'text'
    element.type = 'integer' if element.type == 'int'
    if WashoutBuilder::Type::BASIC_TYPES.include?(element.type)
      pre << "<span class='blue'>#{element.type}</span>&nbsp;<span class='bold'>#{element.name}</span>"
      pre << "&#8194;<span>#{html_safe(element_description)}</span>" unless element_description.blank?
      pre
    else
      create_complex_element_type_html(pre, element, element_description)
    end
  end
def create_element_type_html ( pre , element , element_description ) element_description = element_description . blank? ? nil : element_description . fetch ( element . name . to_s . downcase , '' ) element . type = 'string' if element . type == 'text' element . type = 'integer' if element . type == 'int' if WashoutBuilder :: Type :: BASIC_TYPES . include? ( element . type ) pre << "<span class='blue'>#{element.type}</span>&nbsp;<span class='bold'>#{element.name}</span>" pre << "&#8194;<span>#{html_safe(element_description)}</span>" unless element_description . blank? pre else create_complex_element_type_html ( pre , element , element_description ) end end
this method is for printing the attributes of a complex type
if the attributes are primitives this will show the attributes with  blue color
otherwise will call another method for printing the complex attribute
this method is for printing the attributes of a complex type if the attributes are primitives this will show the attributes with blue color otherwise will call another method for printing the complex attribute
None
void
pre
<not_specific>
element
<not_specific>
element_description
<not_specific>
<not_specific>
element the element that needs to be printed
element the element that needs to be printed
see
None
see
None
api
None