Class: TokyoMetro::App::Renderer::StationFacility::Platform::List
- Inherits:
-
Factory::Decorate::MetaClass
- Object
- RailsDecorateFactory
- Factory::Decorate::MetaClass
- TokyoMetro::App::Renderer::StationFacility::Platform::List
- Defined in:
- lib/tokyo_metro/app/renderer/station_facility/platform/list.rb
Instance Method Summary collapse
-
#initialize(request, ary) ⇒ List
constructor
A new instance of List.
- #render ⇒ Object
Constructor Details
#initialize(request, ary) ⇒ List
Returns a new instance of List.
3 4 5 6 |
# File 'lib/tokyo_metro/app/renderer/station_facility/platform/list.rb', line 3 def initialize( request , ary ) super( request ) @ary = ary end |
Instance Method Details
#render ⇒ Object
8 9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/tokyo_metro/app/renderer/station_facility/platform/list.rb', line 8 def render h.render inline: <<-HAML , type: :haml , locals: h_locals %div{ id: :platform_info_tab_menu } %ul{ id: :platform_info_tabs , class: :clearfix } - ary.each do | info | = info.render_tab %div{ id: :platform_info_tab_contents } %ul{ id: :tab_contents , class: :clearfix } - ary.each do | info | = info.render_content HAML end |