Class: MoulinRouge::ModelDouble

Inherits:
Object
  • Object
show all
Defined in:
lib/moulin_rouge/model_double.rb

Instance Method Summary collapse

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