Sha256: a16a246c67eb6fd06034e165def740344a135d5de08895f7e732727fc5418c42
Contents?: true
Size: 296 Bytes
Versions: 1
Compression:
Stored size: 296 Bytes
Contents
module MotionWizard module Forwardable 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 end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
motion-wizard-0.1 | lib/motion-wizard/lib/forwardable.rb |