Module: RightScale::Singleton::ClassMethods
- Defined in:
- lib/right_agent/monkey_patches/ruby_patch/singleton_patch.rb
Instance Method Summary collapse
-
#method_missing(meth, *args, &blk) ⇒ Object
Redirect class methods to singleton instance.
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(meth, *args, &blk) ⇒ Object
Redirect class methods to singleton instance
32 33 34 |
# File 'lib/right_agent/monkey_patches/ruby_patch/singleton_patch.rb', line 32 def method_missing(meth, *args, &blk) self.instance.__send__(meth, *args, &blk) end |