Class: Locomotive::RelationalAlgebra::Predicate
- Inherits:
-
Object
- Object
- Locomotive::RelationalAlgebra::Predicate
- Includes:
- XML
- Defined in:
- lib/locomotive/relational_algebra/operators/join/predicates.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#first ⇒ Object
readonly
Returns the value of attribute first.
-
#second ⇒ Object
readonly
Returns the value of attribute second.
Instance Method Summary collapse
- #clone ⇒ Object
-
#initialize(first_, second_) ⇒ Predicate
constructor
A new instance of Predicate.
Methods included from 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
#first ⇒ Object
Returns the value of attribute first.
23 24 25 |
# File 'lib/locomotive/relational_algebra/operators/join/predicates.rb', line 23 def first @first end |
#second ⇒ Object
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
#clone ⇒ Object
31 32 33 |
# File 'lib/locomotive/relational_algebra/operators/join/predicates.rb', line 31 def clone self.class.new(first.clone,second.clone) end |