Module: TokyoMetro::Modules::Common::Info::StationFacility::BarrierFree::WheelChair::Availability::Escalator
- Defined in:
- lib/tokyo_metro/modules/common/info/station_facility/barrier_free/wheel_chair/availability/escalator.rb
Overview
車いす対応エスカレーターの利用に関するメソッドを提供するモジュール
Instance Method Summary collapse
- #is_escalator_available_to_wheel_chair ⇒ Object (also: #wheel_chair_accessible_escalator, #escalator_available_to_wheel_chair?)
- #method_missing(method_name, *args) ⇒ Object
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(method_name, *args) ⇒ Object
16 17 18 19 20 21 22 23 24 25 26 27 28 29 |
# File 'lib/tokyo_metro/modules/common/info/station_facility/barrier_free/wheel_chair/availability/escalator.rb', line 16 def method_missing( method_name , *args ) if args.empty? and /wheel(?:_?)chair/ === method_name.to_s case method_name.to_s when /\A(?:is_)?escalator_for_wheel(?:_)?chair(?:s)?(?:\?)?\Z/ return wheel_chair_accessible_escalator? when /\A(?:is_)?wheel(?:_)?chair(?:s)?_accessible_escalator(?:\?)?\Z/ return wheel_chair_accessible_escalator? when /\A(?:is_)?escalator_available_(?:to|for)_wheel(?:_)?chair(?:s)?(?:\?)?\Z/ return escalator_available_to_wheel_chair? end end super end |
Instance Method Details
#is_escalator_available_to_wheel_chair ⇒ Object Also known as: wheel_chair_accessible_escalator, escalator_available_to_wheel_chair?
Note:
wheel_chair_accessible の別名として、wheel_chair_accessible? を定義
7 8 9 |
# File 'lib/tokyo_metro/modules/common/info/station_facility/barrier_free/wheel_chair/availability/escalator.rb', line 7 def is_escalator_available_to_wheel_chair escalator? and is_available_to_wheel_chair end |