Class: MiniKraken::Core::LogVar

Inherits:
Object
  • Object
show all
Includes:
Entry
Defined in:
lib/mini_kraken/core/log_var.rb

Overview

Representation of a MiniKraken logical variable. It is a named slot that can be associated with one value at the time. In relational programming, there is no explicit assignment expression. A logical variable acquires a value through an algorithm called ‘unification’.

Instance Attribute Summary

Attributes included from Entry

#name, #suffix

Instance Method Summary collapse

Methods included from Entry

#i_name, #init_name

Constructor Details

#initialize(aName) ⇒ LogVar

Create a logical variable with given name

Parameters:

  • aName (String)

    The name of the variable



17
18
19
# File 'lib/mini_kraken/core/log_var.rb', line 17

def initialize(aName)
  init_name(aName)
end