Class: MasterDataTool::MasterDataFileCollection
- Inherits:
-
Object
- Object
- MasterDataTool::MasterDataFileCollection
- Defined in:
- lib/master_data_tool/master_data_file_collection.rb
Instance Method Summary collapse
- #each ⇒ Object
-
#initialize(spec_name:, override_identifier: nil) ⇒ MasterDataFileCollection
constructor
A new instance of MasterDataFileCollection.
- #to_a ⇒ Object
Constructor Details
#initialize(spec_name:, override_identifier: nil) ⇒ MasterDataFileCollection
Returns a new instance of MasterDataFileCollection.
5 6 7 8 9 10 11 |
# File 'lib/master_data_tool/master_data_file_collection.rb', line 5 def initialize(spec_name:, override_identifier: nil) @spec_name = spec_name @override_identifier = override_identifier @collection = build freeze end |
Instance Method Details
#each ⇒ Object
13 14 15 16 17 18 19 |
# File 'lib/master_data_tool/master_data_file_collection.rb', line 13 def each return enum_for(:each) unless block_given? collection.each do |file| yield file end end |
#to_a ⇒ Object
21 22 23 |
# File 'lib/master_data_tool/master_data_file_collection.rb', line 21 def to_a each.to_a end |