Class: FactoryFaster::Batch
- Inherits:
-
Object
- Object
- FactoryFaster::Batch
- Defined in:
- lib/factory_faster/batch.rb
Instance Attribute Summary collapse
-
#glob ⇒ Object
readonly
Returns the value of attribute glob.
Instance Method Summary collapse
-
#initialize(glob) ⇒ Batch
constructor
A new instance of Batch.
- #process ⇒ Object
Constructor Details
#initialize(glob) ⇒ Batch
Returns a new instance of Batch.
7 8 9 |
# File 'lib/factory_faster/batch.rb', line 7 def initialize(glob) @glob = glob end |
Instance Attribute Details
#glob ⇒ Object (readonly)
Returns the value of attribute glob.
5 6 7 |
# File 'lib/factory_faster/batch.rb', line 5 def glob @glob end |
Instance Method Details
#process ⇒ Object
11 12 13 14 15 |
# File 'lib/factory_faster/batch.rb', line 11 def process Dir.glob(glob).each do |filename| Faster.new(filename).process end end |