Class: Arel::Nodes::Unary
Direct Known Subclasses
Instance Attribute Summary collapse
-
#expr ⇒ Object
(also: #value)
Returns the value of attribute expr.
Instance Method Summary collapse
-
#initialize(expr) ⇒ Unary
constructor
A new instance of Unary.
Methods inherited from Node
#and, #each, #not, #or, #to_sql
Methods included from FactoryMethods
#create_and, #create_join, #create_on, #create_string_join, #create_table_alias, #grouping, #lower
Constructor Details
#initialize(expr) ⇒ Unary
Returns a new instance of Unary.
7 8 9 |
# File 'lib/arel/nodes/unary.rb', line 7 def initialize expr @expr = expr end |
Instance Attribute Details
#expr ⇒ Object Also known as: value
Returns the value of attribute expr.
4 5 6 |
# File 'lib/arel/nodes/unary.rb', line 4 def expr @expr end |