lib/hotcell/node/summoner.rb in hotcell-0.0.1 vs lib/hotcell/node/summoner.rb in hotcell-0.1.0
- old
+ new
@@ -1,11 +1,7 @@
module Hotcell
class Summoner < Hotcell::Node
- def initialize *attrs
- super :METHOD, *attrs
- end
-
- def process context, object, method, *arguments
- (object.to_manipulator || context).manipulator_invoke(method, *arguments)
+ def process context, target = nil, *arguments
+ (target ? target.to_manipulator : context).manipulator_invoke(name, *arguments)
end
end
end