Sha256: 4e7cf845bc71a9b0c389bb612bcb8c513c296e805ec0eca7f676e4b476372dcb
Contents?: true
Size: 1.32 KB
Versions: 1
Compression:
Stored size: 1.32 KB
Contents
class TokyoMetro::App::Renderer::TravelTimeInfo::RailwayLine::TozaiLine::Bottom < TokyoMetro::App::Renderer::TravelTimeInfo::MetaClass::ThroughOperation def initialize( request , left_columns , columns_next_to_railway_line , right_columns ) super( request , left_columns , columns_next_to_railway_line , right_columns ) @position = :bottom end def render h.render inline: <<-HAML , type: :haml , locals: h_locals %tr{ class: [ :through_operation_info_row , position ] , colspan: columns } %tr{ class: [ :through_operation_info_row , position ] } %td{ class: :through_operation_infos } = jr_sobu_local_line.render %td{ class: [ :railway_line_column , :tozai_sobu ] }< = " " - ( left_columns - 2 ).times do %td{ class: :empty_column }< = " " %td{ colspan: columns_next_to_railway_line }< = " " %td{ class: [ :railway_line_column , :tozai_toyo ] }< = " " %td{ class: :through_operation_infos } = toyo_rapid_railway_line.render HAML end private def h_locals h_locals_base.merge({ jr_sobu_local_line: ::TokyoMetro::App::Renderer::TravelTimeInfo::RailwayLine::TozaiLine::Bottom::ToJrSobuLine.new( @request ) , toyo_rapid_railway_line: ::TokyoMetro::App::Renderer::TravelTimeInfo::RailwayLine::TozaiLine::Bottom::ToToyoRapidRailwayLine.new( @request ) }) 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/railway_line/tozai_line/bottom.rb |