Sha256: 79a856c7c6f66fcfaa1b7d9aabf388f81f69e968c25cbcd5b8d2bd89b0bfcb45

Contents?: true

Size: 451 Bytes

Versions: 15

Compression:

Stored size: 451 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 object.is_a?(WashOut::Param)
    xml.ul("class" => "pre") {
      object.map.each do |element|
        xml.li { |pre|
          create_element_type_html(pre, element)
        }
      end
    }
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
washout_builder-0.15.8 app/views/wash_with_html/_complex_type.builder
washout_builder-0.15.7 app/views/wash_with_html/_complex_type.builder
washout_builder-0.15.6 app/views/wash_with_html/_complex_type.builder
washout_builder-0.15.5 app/views/wash_with_html/_complex_type.builder
washout_builder-0.15.4 app/views/wash_with_html/_complex_type.builder
washout_builder-0.15.3 app/views/wash_with_html/_complex_type.builder
washout_builder-0.15.1 app/views/wash_with_html/_complex_type.builder
washout_builder-0.15.0 app/views/wash_with_html/_complex_type.builder
washout_builder-0.14.1 app/views/wash_with_html/_complex_type.builder
washout_builder-0.14.0 app/views/wash_with_html/_complex_type.builder
washout_builder-0.13.9 app/views/wash_with_html/_complex_type.builder
washout_builder-0.13.8 app/views/wash_with_html/_complex_type.builder
washout_builder-0.13.7 app/views/wash_with_html/_complex_type.builder
washout_builder-0.13.4 app/views/wash_with_html/_complex_type.builder
washout_builder-0.13.5 app/views/wash_with_html/_complex_type.builder