Class: Momo::Reference
- Inherits:
-
Object
- Object
- Momo::Reference
- Defined in:
- lib/momo/reference.rb
Instance Method Summary collapse
-
#initialize(res) ⇒ Reference
constructor
A new instance of Reference.
- #method_missing(name, *args, &block) ⇒ Object
- #representation ⇒ Object
Constructor Details
#initialize(res) ⇒ Reference
Returns a new instance of Reference.
4 5 6 |
# File 'lib/momo/reference.rb', line 4 def initialize(res) @res = res end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(name, *args, &block) ⇒ Object
12 13 14 |
# File 'lib/momo/reference.rb', line 12 def method_missing(name, *args, &block) puts "Ref missing #{name}" end |
Instance Method Details
#representation ⇒ Object
8 9 10 |
# File 'lib/momo/reference.rb', line 8 def representation {"Ref" => @res} end |