class Reflekt::Clone
Public Class Methods
new(action)
click to toggle source
# File lib/clone.rb, line 18 def initialize(action) # Clone the action's calling object. @caller_object_clone = action.caller_object.clone # TODO: Clone any other instances that this clone references. # TODO: Replace clone's references to these new instances. end
Public Instance Methods
action(method, *new_args)
click to toggle source
# File lib/clone.rb, line 26 def action(method, *new_args) @caller_object_clone.send(method, *new_args) end