Class: MongoScope::MongoRow
- Inherits:
-
Object
- Object
- MongoScope::MongoRow
- Defined in:
- lib/mongo_scope.rb
Instance Attribute Summary collapse
-
#h ⇒ Object
Returns the value of attribute h.
Instance Method Summary collapse
-
#initialize(h) ⇒ MongoRow
constructor
A new instance of MongoRow.
- #method_missing(sym, *args, &b) ⇒ Object
Constructor Details
#initialize(h) ⇒ MongoRow
Returns a new instance of MongoRow.
60 61 62 |
# File 'lib/mongo_scope.rb', line 60 def initialize(h) @h = h end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(sym, *args, &b) ⇒ Object
63 64 65 |
# File 'lib/mongo_scope.rb', line 63 def method_missing(sym,*args,&b) h.send(sym,*args,&b) end |
Instance Attribute Details
#h ⇒ Object
Returns the value of attribute h.
59 60 61 |
# File 'lib/mongo_scope.rb', line 59 def h @h end |