lib/missile_emitter.rb in missile_emitter-0.3.2 vs lib/missile_emitter.rb in missile_emitter-0.3.3
- old
+ new
@@ -39,11 +39,11 @@
container = !ns.empty? && namespace ? constantize(ns) : Kernel
action = container == Kernel ? 'define_method' : 'define_singleton_method'
container.send action, name do |*args, &missile|
klass = missile.binding.receiver
- battle_field = BattleField.new klass, MissileEmitter.mapping[context]
- battle_field.emit! *args, &missile
+ battle_field = BattleField.new klass, *args, MissileEmitter.mapping[context]
+ battle_field.emit! &missile
context
end
end