Method: Lexster::Batch#initialize

Defined in:
lib/lexster/batch.rb

#initialize(options = {}, &block) ⇒ Batch

Returns a new instance of Batch.



23
24
25
26
27
28
29
30
31
32
33
# File 'lib/lexster/batch.rb', line 23

def initialize(options={}, &block)
  if options.respond_to?(:call) && !block
    block = options
    options = {}
  end

  options.reverse_merge!(self.class.default_options)

  @options = options
  @block = block
end