Module: TokyoMetro::Modules::Common::Dictionary::Station
- Includes:
- ConvertConstantToClassMethod
- Defined in:
- lib/tokyo_metro/modules/common/dictionary/station.rb
Defined Under Namespace
Modules: RegexpInfo, StringInfo, StringList
Constant Summary collapse
- STATION_NAME_SAME_AS_IN_DB =
::YAML.load_file( "#{ ::TokyoMetro::dictionary_dir }/station/same_as_in_db.yaml" )
Class Method Summary collapse
Class Method Details
.station_same_as_in_db(same_as, title = nil) ⇒ Object
Note:
変数 title は現在不使用だが、とりあえず残しておく
34 35 36 37 38 39 40 41 |
# File 'lib/tokyo_metro/modules/common/dictionary/station.rb', line 34 def self.station_same_as_in_db( same_as , title = nil ) station_alias_from_hash = station_name_same_as_in_db[ same_as ] if station_alias_from_hash.present? station_alias_from_hash else same_as end end |