Class: TokyoMetro::Static::StationsInTokyoMetro::Hash
- Inherits:
-
Fundamental::Hash
- Object
- Hash
- Fundamental::Hash
- TokyoMetro::Static::StationsInTokyoMetro::Hash
- Defined in:
- lib/tokyo_metro/static/stations_in_tokyo_metro/hash.rb
Overview
複数の駅の情報(名称、管理事業者など)を扱うクラス(ハッシュ)
Instance Method Summary collapse
Methods included from Modules::Static::Hash::MakeScss
#instance_of_sccs_color_factory, #make_scss_color_file, scss_color_factory
Instance Method Details
#define_test(title = self.class.upper_namespace.name) ⇒ nil
テスト用メソッド
10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
# File 'lib/tokyo_metro/static/stations_in_tokyo_metro/hash.rb', line 10 def define_test( title = self.class.upper_namespace.name ) super( title ) puts "間違っている駅名" self.each_value do | station | unless station.invalid_names_hira.empty? puts station.invalid_names_hira.to_s end unless station.regexp_of_invalid_inputs.empty? puts station.regexp_of_invalid_inputs.to_s end end return nil end |