Sha256: 3a49d21961a7bae931b10348cd436fa747179e598bca909eb7dbe54aaa04ac45
Contents?: true
Size: 1.11 KB
Versions: 1
Compression:
Stored size: 1.11 KB
Contents
class TokyoMetro::App::Renderer::TravelTimeInfo::RailwayLine::ChiyodaLine < TokyoMetro::App::Renderer::TravelTimeInfo::MetaClass::MultipleRailwayLines private def set_railway_lines( railway_lines ) @main_railway_line = railway_lines.find { | railway | railway.same_as == "odpt.Railway:TokyoMetro.Chiyoda" } @branch_railway_line = railway_lines.find { | railway | railway.same_as == "odpt.Railway:TokyoMetro.ChiyodaBranch" } end def railway_line_base @main_railway_line end def additional_info_top ::Proc.new { ::TokyoMetro::App::Renderer::TravelTimeInfo::RailwayLine::ChiyodaLine::Top.new( @request , @left_columns , @columns_next_to_railway_line , @right_columns ).render } end def additional_info_bottom ::Proc.new { ::TokyoMetro::App::Renderer::TravelTimeInfo::RailwayLine::ChiyodaLine::Bottom.new( @request , @left_columns , @columns_next_to_railway_line , @right_columns , @branch_railway_line ).render } end def set_number_of_columns_next_to_railway_line @columns_next_to_railway_line = 1 end def set_number_of_right_columns @right_columns = 5 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.rb |