Class: ArelExtensions::Nodes::UnionAll
- Inherits:
-
Arel::Nodes::UnionAll
- Object
- Arel::Nodes::UnionAll
- ArelExtensions::Nodes::UnionAll
- Defined in:
- lib/arel_extensions/nodes/union_all.rb
Instance Method Summary collapse
- #as(other) ⇒ Object
-
#initialize(left, right) ⇒ UnionAll
constructor
A new instance of UnionAll.
- #union_all(other) ⇒ Object
Methods included from SetFunctions
Constructor Details
#initialize(left, right) ⇒ UnionAll
Returns a new instance of UnionAll.
4 5 6 |
# File 'lib/arel_extensions/nodes/union_all.rb', line 4 def initialize left, right super(left, right) end |
Instance Method Details
#as(other) ⇒ Object
12 13 14 |
# File 'lib/arel_extensions/nodes/union_all.rb', line 12 def as other Arel::Nodes::TableAlias.new Arel.grouping(self), Arel::Nodes::SqlLiteral.new(other.to_s) end |
#union_all(other) ⇒ Object
8 9 10 |
# File 'lib/arel_extensions/nodes/union_all.rb', line 8 def union_all(other) ArelExtensions::Nodes::UnionAll.new(self, other) end |