Class: TokyoMetro::Rake::CheckNamespace::RenameTable::Namespace::MatchGroup
- Inherits:
-
Object
- Object
- TokyoMetro::Rake::CheckNamespace::RenameTable::Namespace::MatchGroup
- Includes:
- InfoOfRows
- Defined in:
- lib/tokyo_metro/rake/check_namespace/rename_table/namespace/match_group.rb
Instance Method Summary collapse
- #display(indent = 0) ⇒ Object
-
#initialize(matched_rows, regexp, filename_length_max) ⇒ MatchGroup
constructor
A new instance of MatchGroup.
Constructor Details
#initialize(matched_rows, regexp, filename_length_max) ⇒ MatchGroup
Returns a new instance of MatchGroup.
3 4 5 6 7 |
# File 'lib/tokyo_metro/rake/check_namespace/rename_table/namespace/match_group.rb', line 3 def initialize( matched_rows , regexp , filename_length_max ) @matched_rows = matched_rows @regexp = regexp @filename_length_max = filename_length_max end |
Instance Method Details
#display(indent = 0) ⇒ Object
11 12 13 14 15 16 17 18 19 20 |
# File 'lib/tokyo_metro/rake/check_namespace/rename_table/namespace/match_group.rb', line 11 def display( indent = 0 ) puts " " * indent + "* " + @regexp.inspect puts "" @matched_rows.each do | matched_row | matched_row.display( @filename_length_max , indent * 2 ) end display_info_of_rows( indent ) end |