Class: Lafcadio::Query::Inferrer
- Inherits:
-
Object
- Object
- Lafcadio::Query::Inferrer
- Defined in:
- lib/lafcadio/query.rb
Overview
:nodoc:
Instance Method Summary collapse
- #execute ⇒ Object
-
#initialize(domainClass, &action) ⇒ Inferrer
constructor
A new instance of Inferrer.
Constructor Details
#initialize(domainClass, &action) ⇒ Inferrer
Returns a new instance of Inferrer.
122 123 124 |
# File 'lib/lafcadio/query.rb', line 122 def initialize( domainClass, &action ) @domainClass = domainClass; @action = action end |
Instance Method Details
#execute ⇒ Object
126 127 128 129 130 |
# File 'lib/lafcadio/query.rb', line 126 def execute impostor = DomainObjectImpostor.new( @domainClass ) condition = @action.call( impostor ) query = Query.new( @domainClass, condition ) end |