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.



107
108
109
110
111
112
# File 'lib/core/patterns.rb', line 107

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