Class: Locomotive::RelationalAlgebra::Predicate

Inherits:
Object
  • Object
show all
Includes:
XML
Defined in:
lib/locomotive/relational_algebra/operators/join/predicates.rb

Direct Known Subclasses

Equivalence, PredGreaterThan, PredLessThan

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from XML

included, #quote, #to_xml

Constructor Details

#initialize(first_, second_) ⇒ Predicate

Returns a new instance of Predicate.



26
27
28
29
# File 'lib/locomotive/relational_algebra/operators/join/predicates.rb', line 26

def initialize(first_, second_)
  self.first,
  self.second = first_, second_
end

Instance Attribute Details

#firstObject

Returns the value of attribute first.



23
24
25
# File 'lib/locomotive/relational_algebra/operators/join/predicates.rb', line 23

def first
  @first
end

#secondObject

Returns the value of attribute second.



23
24
25
# File 'lib/locomotive/relational_algebra/operators/join/predicates.rb', line 23

def second
  @second
end

Instance Method Details

#cloneObject



31
32
33
# File 'lib/locomotive/relational_algebra/operators/join/predicates.rb', line 31

def clone
  self.class.new(first.clone,second.clone)
end