Class: MoulinRouge::ModelDouble
- Inherits:
-
Object
- Object
- MoulinRouge::ModelDouble
- Defined in:
- lib/moulin_rouge/model_double.rb
Instance Method Summary collapse
-
#method_missing(name, *args, &block) ⇒ Object
Return an block for later evaluation.
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(name, *args, &block) ⇒ Object
Return an block for later evaluation
4 5 6 7 8 |
# File 'lib/moulin_rouge/model_double.rb', line 4 def method_missing(name, *args, &block) lambda do |scope| scope.send(name, *args, &block) end end |