Class: Locomotive::RelationalAlgebra::Item
- Inherits:
-
ConstAttribute
show all
- Includes:
- Comparable
- Defined in:
- lib/locomotive/relational_algebra/attributes.rb
Instance Attribute Summary
#id
Instance Method Summary
collapse
#==, #clone, #inc, #initialize, #inspect, #to_xml
#eql?, #hash
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
|