Class: TokyoMetro::Api::RailwayLine::List
- Inherits:
-
MetaClass::Hybrid::List
- Object
- Array
- MetaClass::Fundamental::List
- MetaClass::Hybrid::List
- TokyoMetro::Api::RailwayLine::List
- Defined in:
- lib/tokyo_metro/api/railway_line/list.rb
Overview
各路線の情報の配列
Instance Method Summary collapse
- #sort_by_railway_line_order ⇒ Object
-
#to_strf(indent = 0) ⇒ String
インスタンスの情報を整形した文字列にして返すメソッド.
Methods included from Modules::Common::ToFactory::Seed::Group
Methods inherited from MetaClass::Fundamental::List
Instance Method Details
#sort_by_railway_line_order ⇒ Object
14 15 16 |
# File 'lib/tokyo_metro/api/railway_line/list.rb', line 14 def sort_by_railway_line_order self.class.new( self.sort_by { | railway_line | ::TokyoMetro::Static.railway_lines[ railway_line.same_as ].order } ) end |
#to_strf(indent = 0) ⇒ String
インスタンスの情報を整形した文字列にして返すメソッド
10 11 12 |
# File 'lib/tokyo_metro/api/railway_line/list.rb', line 10 def to_strf( indent = 0 ) super( indent , 3 ) end |