Class: TokyoMetro::Factory::Decorate::AppSubDecorator::InDocument
- Inherits:
-
TokyoMetro::Factory::Decorate::AppSubDecorator
- Object
- TokyoMetro::Factory::Decorate::AppSubDecorator
- TokyoMetro::Factory::Decorate::AppSubDecorator::InDocument
- Defined in:
- lib/tokyo_metro/factory/decorate/app_sub_decorator/in_document.rb
Defined Under Namespace
Modules: ColorInfo
Instance Attribute Summary
Attributes inherited from TokyoMetro::Factory::Decorate::AppSubDecorator
Instance Method Summary collapse
Methods inherited from TokyoMetro::Factory::Decorate::AppSubDecorator
#initialize, #method_missing, #object
Constructor Details
This class inherits a constructor from TokyoMetro::Factory::Decorate::AppSubDecorator
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class TokyoMetro::Factory::Decorate::AppSubDecorator
Instance Method Details
#render_button_domain ⇒ Object
3 4 5 |
# File 'lib/tokyo_metro/factory/decorate/app_sub_decorator/in_document.rb', line 3 def h.content_tag( :div , '' , class: [ :button_area , :clearfix ] ) end |
#render_infos ⇒ Object
7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
# File 'lib/tokyo_metro/factory/decorate/app_sub_decorator/in_document.rb', line 7 def render_infos h.render inline: "%ul{ class: [ :sub_infos , :clearfix ] }\n- infos.each do | title , group |\n %li{ class: [ :title , :text_en ] }<\n = title\n %dl{ class: :clearfix }\n - group.each do | k , v |\n - if v.present?\n %dt{ class: [ :attr_title , :text_en ] }<\n = k.to_s + \" :\"\n %dd<\n = v.to_s\n HAML\nend\n" , type: :haml , locals: { infos: infos_to_render } |