Class: Arel::Nodes::Unary

Inherits:
Node
  • Object
show all
Defined in:
lib/arel/nodes/unary.rb

Direct Known Subclasses

Group, Grouping, Having, Limit, Lock, Not, Offset, On, Top, UnqualifiedColumn

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Node

#and, #each, #not, #or, #to_sql

Constructor Details

#initialize(expr) ⇒ Unary

Returns a new instance of Unary.



6
7
8
# File 'lib/arel/nodes/unary.rb', line 6

def initialize expr
  @expr = expr
end

Instance Attribute Details

#exprObject

Returns the value of attribute expr.



4
5
6
# File 'lib/arel/nodes/unary.rb', line 4

def expr
  @expr
end