Sha256: 507cda832236f00080c97a3d80e91ecba99c2ebd5d74bcc6da39075d8a442638

Contents?: true

Size: 642 Bytes

Versions: 1

Compression:

Stored size: 642 Bytes

Contents

class TokyoMetro::App::Renderer::StationFacility::Platform::List < TokyoMetro::Factory::Decorate::MetaClass

  def initialize( request , ary )
    super( request )
    @ary = ary
  end

  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

  private

  def h_locals
    super.merge({
      ary: @ary
    })
  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
tokyo_metro-0.10.1 lib/tokyo_metro/app/renderer/station_facility/platform/list.rb