class ArelExtensions::Nodes::Union
Public Class Methods
new(left, right)
click to toggle source
Calls superclass method
# File lib/arel_extensions/nodes/union.rb, line 4 def initialize left, right return super(left, right) end
Public Instance Methods
+(other)
click to toggle source
# File lib/arel_extensions/nodes/union.rb, line 8 def +(other) return ArelExtensions::Nodes::Union.new(self, other) end
as(other)
click to toggle source
# File lib/arel_extensions/nodes/union.rb, line 16 def as other Arel::Nodes::TableAlias.new Arel.grouping(self), Arel::Nodes::SqlLiteral.new(other.to_s) end
union(other)
click to toggle source
# File lib/arel_extensions/nodes/union.rb, line 12 def union(other) return ArelExtensions::Nodes::UnionAll.new(self, other) end