Class: Squeel::Nodes::As

Inherits:
Binary
  • Object
show all
Defined in:
lib/squeel/nodes/as.rb

Overview

A node representing an SQL alias, which will result in same when visited.

Instance Attribute Summary

Attributes inherited from Binary

#left, #right

Instance Method Summary collapse

Methods inherited from Binary

#eql?

Methods included from PredicateOperators

#&, #-@, #|

Constructor Details

#initialize(left, right) ⇒ As

Returns a new instance of As.

Parameters:

  • left

    The node to be aliased

  • right

    The alias name



9
10
11
# File 'lib/squeel/nodes/as.rb', line 9

def initialize(left, right)
  @left, @right = left, right
end