Module: TokyoMetro::Modules::Common::Info::RailwayLine::BranchLine

Included in:
Api::RailwayLine::Info, Static::RailwayLine::Info
Defined in:
lib/tokyo_metro/modules/common/info/railway_line/branch_line.rb

Overview

Note:

Rails の model RailwayLine では、column ‘is_branch_railway_line’ の値を用いて判定したいため、諸々の機能を持つ TokyoMetro::Modules::Common::Info::RailwayLine のみを include し、branch_railway_line? などは method_missing で対応する。

支線か否かを判定する機能のモジュール

Instance Method Summary collapse

Instance Method Details

#branch_railway_line?Boolean Also known as: is_branch_railway_line, is_branch_railway_line?

Returns:

  • (Boolean)


5
6
7
# File 'lib/tokyo_metro/modules/common/info/railway_line/branch_line.rb', line 5

def branch_railway_line?
  /Branch\Z/ === same_as
end