lib/chain-reactor/reaction.rb in chain-reactor-0.2.0 vs lib/chain-reactor/reaction.rb in chain-reactor-0.2.1
- old
+ new
@@ -22,10 +22,10 @@
attr_accessor :previous_data
# Options used by this reaction.
attr_accessor :options
# Create a new reaction, with the options and code block to run.
- def initialize(options = {},block,logger)
+ def initialize(options,block,logger)
@options = { :parser => :json, :required_keys => [], :keys_to_sym => true }.merge(options)
@block = block
@log = logger
@log.debug { "Created reaction with options: #{options}" }
end