Class: ActiveRecord::Refined::AST::Not
- Defined in:
- lib/active_record/refined/ast.rb
Instance Attribute Summary collapse
-
#operand ⇒ Object
readonly
Returns the value of attribute operand.
Instance Method Summary collapse
-
#initialize(operand) ⇒ Not
constructor
A new instance of Not.
- #to_arel(table) ⇒ Object
Methods inherited from Predicate
Methods inherited from Node
Constructor Details
#initialize(operand) ⇒ Not
Returns a new instance of Not.
326 327 328 |
# File 'lib/active_record/refined/ast.rb', line 326 def initialize(operand) @operand = operand end |
Instance Attribute Details
#operand ⇒ Object (readonly)
Returns the value of attribute operand.
324 325 326 |
# File 'lib/active_record/refined/ast.rb', line 324 def operand @operand end |
Instance Method Details
#to_arel(table) ⇒ Object
330 331 332 |
# File 'lib/active_record/refined/ast.rb', line 330 def to_arel(table) Arel::Nodes::Not.new(operand.to_arel(table)) end |