class Wongi::Engine::DSL::Query
Public Instance Methods
import_into(model)
click to toggle source
Calls superclass method
# File lib/wongi-engine/dsl/query.rb, line 9 def import_into model super.tap { |copy| copy.search_on *parameters } end
install( rete )
click to toggle source
# File lib/wongi-engine/dsl/query.rb, line 17 def install( rete ) rete.install_query( self ) end
parameters()
click to toggle source
# File lib/wongi-engine/dsl/query.rb, line 13 def parameters @parameters ||= [] end
search_on(*terms)
click to toggle source
# File lib/wongi-engine/dsl/query.rb, line 5 def search_on *terms terms.each { |term| parameters << term } end