Sha256: 46fdf26ce96a1a6cf8b60061270406b62e71299aebe52a818639475ea06d1c8e

Contents?: true

Size: 1.01 KB

Versions: 1

Compression:

Stored size: 1.01 KB

Contents

class TokyoMetro::App::Renderer::Concerns::Link::ToRailwayLinePage::RealTimeInfos < TokyoMetro::App::Renderer::Concerns::Link::ToRailwayLinePage::MetaClass::Group

  def initialize( request , railway_line_decorated , controllers )
    super( request , railway_line_decorated )

    @controller = nil
    @controllers = controllers
    @link_type = :standard
  end

  def render
    h.render inline: <<-HAML , type: :haml , locals: h_locals
%ul{ class: [ :each_railway_line , railway_line_decorated.css_class_name , :clearfix ] }
  = this.render_railway_line_name
  - controllers.each do | controller , texts |
    = ::TokyoMetro::App::Renderer::RealTimeInfos::SideMenu::LinkToRailwayLinePage::EachController.new( request , controller , railway_line_page_name ).render
    HAML
  end

  private

  def add_railway_line_css_class_name_to_li_classes?
    false
  end

  def url
    nil
  end

  def without_link_to_railway_line_page?
    true
  end

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

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
tokyo_metro-0.10.1 lib/tokyo_metro/app/renderer/concerns/link/to_railway_line_page/real_time_infos.rb