Class: Locomotive::RelationalAlgebra::PredicateList

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

Instance Method Summary collapse

Methods included from XML

included, #quote

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

#cloneObject



88
89
90
# File 'lib/locomotive/relational_algebra/operators/join/predicates.rb', line 88

def clone
  PredicateList.new( *pred_list.clone )
end

#to_xmlObject



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