Class: Ruleby::Core::InitialFactPattern

Inherits:
ObjectPattern show all
Defined in:
lib/core/patterns.rb

Instance Attribute Summary

Attributes inherited from ObjectPattern

#atoms

Instance Method Summary collapse

Methods inherited from ObjectPattern

#==, #head, #to_s

Constructor Details

#initializeInitialFactPattern

Returns a new instance of InitialFactPattern.



104
105
106
107
108
109
# File 'lib/core/patterns.rb', line 104

def initialize
  deftemplate = DefTemplate.new InitialFact, :equals
  htag = GeneratedTag.new
  head = HeadAtom.new htag, deftemplate
  super(head, [])
end