Class: Squeel::Nodes::As

Inherits:
Binary 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?, #hash

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



12
13
14
# File 'lib/squeel/nodes/as.rb', line 12

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