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: "%div{ id: :platform_info_tab_menu }\n%ul{ id: :platform_info_tabs , class: :clearfix }\n - ary.each do | info |\n = info.render_tab\n%div{ id: :platform_info_tab_contents }\n %ul{ id: :tab_contents , class: :clearfix }\n - ary.each do | info |\n = info.render_content\n HAML\nend\n" , type: :haml , locals: h_locals |