class Wongi::Engine::DSL::Clause::Neg
Public Instance Methods
compile(context)
click to toggle source
# File lib/wongi-engine/dsl/clause/fact.rb, line 45 def compile(context) tests, assignment = parse_variables(context) raise DefinitionError, "Negative matches may not introduce new variables: #{assignment.variables}" unless assignment.root? context.tap { |c| c.neg_node(self, tests) } end
inspect()
click to toggle source
# File lib/wongi-engine/dsl/clause/fact.rb, line 52 def inspect "<-#{subject.inspect} #{predicate.inspect} #{object.inspect}>" end