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(={}, &block) if .respond_to?(:call) && !block block = = {} end .reverse_merge!(self.class.) @options = @block = block end |