Class: Locomotive::RelationalAlgebra::PredicateList
- Inherits:
-
Object
- Object
- Locomotive::RelationalAlgebra::PredicateList
- Includes:
- XML
- Defined in:
- lib/locomotive/relational_algebra/operators/join/predicates.rb
Instance Method Summary collapse
- #clone ⇒ Object
-
#initialize(*ary) ⇒ PredicateList
constructor
A new instance of PredicateList.
- #to_xml ⇒ Object
Methods included from XML
Constructor Details
#initialize(*ary) ⇒ PredicateList
Returns a new instance of PredicateList.
78 79 80 |
# File 'lib/locomotive/relational_algebra/operators/join/predicates.rb', line 78 def initialize(*ary) self.pred_list = ary end |
Instance Method Details
#clone ⇒ Object
88 89 90 |
# File 'lib/locomotive/relational_algebra/operators/join/predicates.rb', line 88 def clone PredicateList.new( *pred_list.clone ) end |
#to_xml ⇒ Object
82 83 84 85 86 |
# File 'lib/locomotive/relational_algebra/operators/join/predicates.rb', line 82 def to_xml pred_list.collect do |pred| pred.to_xml end.join end |