class Symbol

In Porolog, Symbols represent Variables.

Public Instance Methods

/(other) click to toggle source

@param other [Object] the Object which is to be the tail @return [Array] an Array with the Object being the head and the other Object being the tail.

# File lib/porolog/core_ext.rb, line 76
def /(other)
  [self]/other
end
myid() click to toggle source

A convenience method for testing/debugging. @return [String] the equivalent of inspect.

# File lib/porolog/core_ext.rb, line 60
def myid
  inspect
end
type() click to toggle source

@return [Symbol] the type of the object (for a Symbol, should be :variable)

# File lib/porolog/core_ext.rb, line 70
def type
  :variable
end
variables() click to toggle source

@return [Array] embedded variables (for a Symbol, should be itself).

# File lib/porolog/core_ext.rb, line 65
def variables
  [self]
end