Class: TokyoMetro::App::Renderer::Concerns::Link::ToRailwayLinePage::MetaClass::Group

Inherits:
TokyoMetro::App::Renderer::Concerns::Link::ToRailwayLinePage::MetaClass show all
Defined in:
lib/tokyo_metro/app/renderer/concerns/link/to_railway_line_page/meta_class/group.rb

Direct Known Subclasses

PassengerSurvey, RealTimeInfos

Instance Method Summary collapse

Methods inherited from TokyoMetro::App::Renderer::Concerns::Link::ToRailwayLinePage::MetaClass

#initialize, #render

Constructor Details

This class inherits a constructor from TokyoMetro::App::Renderer::Concerns::Link::ToRailwayLinePage::MetaClass

Instance Method Details

#render_railway_line_nameObject



3
4
5
6
7
8
9
10
11
# File 'lib/tokyo_metro/app/renderer/concerns/link/to_railway_line_page/meta_class/group.rb', line 3

def render_railway_line_name
  h.render inline: <<-HAML , type: :haml , locals: h_locals_for_rendering_railway_line_name
%li{ class: li_classes }
= link_to_unless( without_link_to_railway_line_page , "" , url )
%div{ class: div_classes }
  = railway_line_decorated.render_railway_line_code( small: small_railway_line_code )
  = railway_line_decorated.render_name( prefix_ja: prefix_ja , prefix_en: prefix_en , suffix_ja: suffix_ja , suffix_en: suffix_en )
  HAML
end