Class: Locomotive::RelationalAlgebra::Item

Inherits:
ConstAttribute show all
Includes:
Comparable
Defined in:
lib/locomotive/relational_algebra/attributes.rb

Instance Attribute Summary

Attributes inherited from ConstAttribute

#id

Instance Method Summary collapse

Methods inherited from ConstAttribute

#==, #clone, #inc, #initialize, #inspect, #to_xml

Methods included from ConstAttribute::HashKeys

#eql?, #hash

Constructor Details

This class inherits a constructor from Locomotive::RelationalAlgebra::ConstAttribute

Instance Method Details

#<=>(other) ⇒ Object



100
101
102
# File 'lib/locomotive/relational_algebra/attributes.rb', line 100

def <=>(other)
  self.id <=> other.id
end

#dec!(id) ⇒ Object



109
110
111
# File 'lib/locomotive/relational_algebra/attributes.rb', line 109

def dec!(id)
  self.id -= id 
end

#inc!(id) ⇒ Object



105
106
107
# File 'lib/locomotive/relational_algebra/attributes.rb', line 105

def inc!(id)
  self.id += id
end