Module: Single::ClassMethods
- Defined in:
- lib/single/single.rb
Instance Method Summary collapse
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(method_id, *args, &block) ⇒ Object
11 12 13 |
# File 'lib/single/single.rb', line 11 def method_missing(method_id, *args, &block) instance.send method_id, *args, &block end |
Instance Method Details
#instance ⇒ Object
7 8 9 |
# File 'lib/single/single.rb', line 7 def instance @instance ||= new end |