123456789_123456789_123456789_123456789_123456789_

Class: Arel::Nodes::UnaryOperation

Do not use. This class is for internal use only.
Relationships & Source Files
Extension / Inclusion / Inheritance Descendants
Subclasses:
Super Chains via Extension / Inclusion / Inheritance
Class Chain:
Instance Chain:
Inherits: Arel::Nodes::Unary
Defined in: activerecord/lib/arel/nodes/unary_operation.rb

Class Method Summary

Instance Attribute Summary

Unary - Inherited

#expr,
#value

Alias for Unary#expr.

Node - Inherited

Instance Method Summary

Constructor Details

.new(operator, operand) ⇒ UnaryOperation

[ GitHub ]

  
# File 'activerecord/lib/arel/nodes/unary_operation.rb', line 8

def initialize(operator, operand)
  super(operand)
  @operator = operator
end

Instance Attribute Details

#operator (readonly)

[ GitHub ]

  
# File 'activerecord/lib/arel/nodes/unary_operation.rb', line 6

attr_reader :operator