Module: TokyoMetro::Modules::Common::Info::Decision::RailwayLine

Included in:
Factory::BeforeSeed::Api::MetaClass::Timetables::TrainTypeModules::RailwayLine, Api::Info::Decision::RailwayLine, Db::Decision::RailwayLine
Defined in:
lib/tokyo_metro/modules/common/info/decision/railway_line.rb

路線に関するメソッド collapse

Instance Method Details

#on_marunouchi_line_including_branch?Boolean

Returns:

  • (Boolean)


19
20
21
# File 'lib/tokyo_metro/modules/common/info/decision/railway_line.rb', line 19

def on_marunouchi_line_including_branch?
  on_the_railway_line_of?( *( ::TokyoMetro::Modules::Common::Dictionary::RailwayLine::StringList.marunouchi_main_and_branch_line_same_as ) )
end

#on_namboku_or_toei_mita_line?Boolean

Returns:

  • (Boolean)


31
32
33
# File 'lib/tokyo_metro/modules/common/info/decision/railway_line.rb', line 31

def on_namboku_or_toei_mita_line?
  on_namboku_line? or on_toei_mita_line?
end

#on_toei_mita_line?Boolean

Returns:

  • (Boolean)


27
28
29
# File 'lib/tokyo_metro/modules/common/info/decision/railway_line.rb', line 27

def on_toei_mita_line?
  on_the_railway_line_of?( "odpt.Railway:Toei.Mita" )
end

#on_yurakucho_or_fukutoshin_line?Boolean

Returns:

  • (Boolean)


23
24
25
# File 'lib/tokyo_metro/modules/common/info/decision/railway_line.rb', line 23

def on_yurakucho_or_fukutoshin_line?
  on_the_railway_line_of?( *( ::TokyoMetro::Modules::Common::Dictionary::RailwayLine::StringList.yurakucho_and_fukutoshin_line_same_as ) )
end