Class: TokyoMetro::App::Renderer::StationFacility::Platform::List

Inherits:
Factory::Decorate::MetaClass show all
Defined in:
lib/tokyo_metro/app/renderer/station_facility/platform/list.rb

Instance Method Summary collapse

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

#renderObject



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