Class: Wongi::Engine::NegTemplate
- Defined in:
- lib/wongi-engine/template.rb
Instance Attribute Summary
Attributes inherited from Template
#filters, #object, #predicate, #subject, #time
Instance Method Summary collapse
-
#compile(context) ⇒ Object
:arg: context => Wongi::Rete::BetaNode::CompilationContext.
Methods inherited from Template
#==, #===, #=~, #contains?, #hash, hash_for, #import_into, #initialize, #inspect, #root?, #to_s, variable?
Methods included from CoreExt
Constructor Details
This class inherits a constructor from Wongi::Engine::Template
Instance Method Details
#compile(context) ⇒ Object
:arg: context => Wongi::Rete::BetaNode::CompilationContext
90 91 92 93 94 95 96 97 |
# File 'lib/wongi-engine/template.rb', line 90 def compile context tests, _ = *JoinNode.compile( self, context.earlier, context.parameters ) alpha = context.rete.compile_alpha( self ) context.node = context.node.neg_node( alpha, tests, context.alpha_deaf ) context.node.debug = debug? context.earlier << self context end |