Class: Mongo::Model::Assignment::Dsl
- Inherits:
- BasicObject
- Defined in:
- lib/mongo/model/assignment.rb
Instance Method Summary collapse
-
#initialize(model) ⇒ Dsl
constructor
A new instance of Dsl.
Constructor Details
#initialize(model) ⇒ Dsl
Returns a new instance of Dsl.
5 6 7 |
# File 'lib/mongo/model/assignment.rb', line 5 def initialize model @model = model end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(m, *args) ⇒ Object (protected)
10 11 12 13 |
# File 'lib/mongo/model/assignment.rb', line 10 def method_missing m, *args args.unshift m @model.assign *args end |