Class: Ruleby::Core::TypeNode
- Inherits:
-
HashedNode
- Object
- Printable
- Node
- ParentNode
- AtomNode
- HashedNode
- Ruleby::Core::TypeNode
- Defined in:
- lib/core/nodes.rb
Overview
This node class is used to match the type of a fact. In this case the type is matched exactly (ignoring inheritance).
Direct Known Subclasses
Instance Attribute Summary
Attributes inherited from AtomNode
Attributes inherited from ParentNode
Attributes inherited from Printable
Instance Method Summary collapse
Methods inherited from HashedNode
#add_out_node, #assert, #forks?, #initialize, #retract
Methods inherited from AtomNode
#==, #initialize, #shareable?, #to_s
Methods inherited from ParentNode
#add_out_node, #assert, #forks?, #initialize, #propagate_assert, #propagate_retract, #retract
Methods inherited from Node
Methods inherited from Printable
Constructor Details
This class inherits a constructor from Ruleby::Core::HashedNode
Instance Method Details
#hash_by(atom) ⇒ Object
392 393 394 |
# File 'lib/core/nodes.rb', line 392 def hash_by(atom) atom.deftemplate.clazz end |