Sha256: c36290041bda022553d2913f594b885a0d93f0b27b95bd713886456854db3a60
Contents?: true
Size: 1.73 KB
Versions: 1
Compression:
Stored size: 1.73 KB
Contents
class TokyoMetro::App::Renderer::TravelTimeInfo::RailwayLine::ChiyodaLine::Bottom < TokyoMetro::App::Renderer::TravelTimeInfo::MetaClass::ThroughOperation def initialize( request , left_columns , columns_next_to_railway_line , right_columns , branch_railway_line ) super( request , left_columns , columns_next_to_railway_line , right_columns ) @position = :bottom @branch_railway_line = branch_railway_line 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 , colspan: ( left_columns + columns_next_to_railway_line ) , rowspan: 2 } = jr_joban_line.render %td{ class: [ :railway_line_column , :chiyoda_joban ] , rowspan: 2 }< = " " - ( right_columns - 2 ).times do %td{ class: :empty_column , rowspan: 2 }< = " " = chiyoda_branch_line.render %tr< %td{ colspan: 2 }< = " " %tr{ class: [ :empty_row , position ] } %td{ colspan: columns }< = " " %tr{ class: position } %td{ colspan: columns } %div{ class: :info } %div{ class: :icon } %div{ class: :text_ja }< = "北千住 - 綾瀬を通過する際の運賃のご案内" %div{ class: :text_en }< = "Fare through between Kita-senju and Ayase" HAML end private def h_locals h_locals_base.merge({ jr_joban_line: ::TokyoMetro::App::Renderer::TravelTimeInfo::RailwayLine::ChiyodaLine::Bottom::ToJrJobanLine.new( @request ) , chiyoda_branch_line: ::TokyoMetro::App::Renderer::TravelTimeInfo::RailwayLine::ChiyodaLine::Bottom::ChiyodaBranchLine.new( @request , @branch_railway_line ) }) 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/chiyoda_line/bottom.rb |