Sha256: 91ccd4409ff494b88ad6e7d3a6edeb1811d449a8aca2bdd3ff9852098cd2811c

Contents?: true

Size: 525 Bytes

Versions: 35

Compression:

Stored size: 525 Bytes

Contents

unless object.blank?
  xml.a( "name" => "#{class_name}")  { }
  xml.h3  { |pre| pre << "#{class_name} #{ancestors.blank? ? "" : "<small>(extends <a href='##{ancestors[0].to_s.classify}'>#{ancestors[0].to_s.classify}</a>)</small>" } " }


  if WashoutBuilder::Type.base_param_class.present? && object.is_a?(WashoutBuilder::Type.base_param_class)
    xml.ul("class" => "pre") {
      object.map.each do |element|
        xml.li { |pre|
          create_element_type_html(pre, element, nil)
        }
      end
    }
  end
end

Version data entries

35 entries across 35 versions & 1 rubygems

Version Path
washout_builder-2.0.5 app/views/wash_with_html/_complex_type.builder
washout_builder-2.0.4 app/views/wash_with_html/_complex_type.builder
washout_builder-2.0.3 app/views/wash_with_html/_complex_type.builder
washout_builder-2.0.2 app/views/wash_with_html/_complex_type.builder
washout_builder-2.0.0 app/views/wash_with_html/_complex_type.builder
washout_builder-1.7.5 app/views/wash_with_html/_complex_type.builder
washout_builder-1.7.4 app/views/wash_with_html/_complex_type.builder
washout_builder-1.7.3 app/views/wash_with_html/_complex_type.builder
washout_builder-1.7.2 app/views/wash_with_html/_complex_type.builder
washout_builder-1.7.1 app/views/wash_with_html/_complex_type.builder
washout_builder-1.7.0 app/views/wash_with_html/_complex_type.builder
washout_builder-1.6.5 app/views/wash_with_html/_complex_type.builder
washout_builder-1.6.4 app/views/wash_with_html/_complex_type.builder
washout_builder-1.6.3 app/views/wash_with_html/_complex_type.builder
washout_builder-1.6.2 app/views/wash_with_html/_complex_type.builder
washout_builder-1.6.1 app/views/wash_with_html/_complex_type.builder
washout_builder-1.5.6 app/views/wash_with_html/_complex_type.builder
washout_builder-1.5.5 app/views/wash_with_html/_complex_type.builder
washout_builder-1.5.4 app/views/wash_with_html/_complex_type.builder
washout_builder-1.5.3 app/views/wash_with_html/_complex_type.builder