Class: Ruleby::Core::TypeNode

Inherits:
HashedNode show all
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

InheritsNode

Instance Attribute Summary

Attributes inherited from AtomNode

#atom

Attributes inherited from ParentNode

#child_nodes

Attributes inherited from Printable

#parent_nodes

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

#resolve

Methods inherited from Printable

#initialize, #print

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