Sha256: aaef8314c3b8f912214b15d7680da54e9f7f42d5cb2109a7139536e4c769f3d9
Contents?: true
Size: 847 Bytes
Versions: 1
Compression:
Stored size: 847 Bytes
Contents
class TokyoMetro::App::Renderer::TravelTimeInfo::MetaClass::ThroughOperation::EachType::RailwayLineAndTerminalStation < TokyoMetro::Factory::Decorate::MetaClass def initialize( request , railway_line , terminal_station ) super( request ) @railway_line = railway_line @terminal_station = terminal_station end def render( suffix: nil ) h.render inline: <<-HAML , type: :haml , locals: h_locals( suffix ) %span{ class: :railway_line }< = railway_line.name_ja_with_operator_name_precise_and_without_parentheses %span{ class: :terminal_station }<> = "「" + terminal_station.name_ja + "」" - if suffix.present? %span< = suffix HAML end private def h_locals( suffix ) super().merge({ railway_line: @railway_line , terminal_station: @terminal_station , suffix: suffix }) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
tokyo_metro-0.10.1 | lib/tokyo_metro/app/renderer/travel_time_info/meta_class/through_operation/each_type/railway_line_and_terminal_station.rb |