module MotionWizard::Forwardable
Public Instance Methods
delegate(*methods)
click to toggle source
# File lib/motion-wizard/lib/forwardable.rb, line 3 def delegate(*methods) to = methods.shift methods.each do |method_name| define_method(method_name) do |*args, &block| self.instance_variable_get(to).send(method_name, *args, &block) end end end