Class: FactoryFaster::Batch

Inherits:
Object
  • Object
show all
Defined in:
lib/factory_faster/batch.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#globObject (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

#processObject



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