Module: TokyoMetro::Modules::Static::Hash::DefineTest
- Included in:
- Static::Fundamental::Hash
- Defined in:
- lib/tokyo_metro/modules/static/hash/define_test.rb
Overview
テストに使用するメソッドを提供するモジュール
Instance Method Summary collapse
Instance Method Details
#define_test(title = self.class.toplevel_namespace) ⇒ nil
テスト用メソッド
7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
# File 'lib/tokyo_metro/modules/static/hash/define_test.rb', line 7 def define_test( title = self.class.toplevel_namespace ) puts "\*" * 96 puts "" puts "● #{title}" puts "" self.values.sort.each do |v| puts ( v.to_s ) puts "\n" end puts "\n" * 2 puts "○ Class" puts self.values.map { |v| v.class.name }.uniq.sort puts "" puts "○ Keys" puts self.keys.sort puts "\n" * 2 return nil end |