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 8
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 16
def install(rete)
  rete.install_query(self)
end
parameters() click to toggle source
# File lib/wongi-engine/dsl/query.rb, line 12
def parameters
  @parameters ||= []
end
search_on(*terms) click to toggle source
# File lib/wongi-engine/dsl/query.rb, line 4
def search_on(*terms)
  terms.each { |term| parameters << term }
end