lib/picky/extensions/class.rb in picky-4.4.1 vs lib/picky/extensions/class.rb in picky-4.4.2
- old
+ new
@@ -1,7 +1,7 @@
# The original Class class.
#
-class Class # :nodoc:all
+class Class
def instance_delegate *methods
methods.each do |method|
module_eval("def self.#{method}(*args, &block)\nself.instance.__send__(#{method.inspect}, *args, &block)\nend\n", "(__DELEGATION__)", 1)
end
\ No newline at end of file