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, model) ⇒ Object
Methods inherited from Predicate
Methods inherited from Node
Constructor Details
#initialize(operand) ⇒ Not
Returns a new instance of Not.
1592 1593 1594 |
# File 'lib/active_record/refined/ast.rb', line 1592 def initialize(operand) @operand = operand end |
Instance Attribute Details
#operand ⇒ Object (readonly)
Returns the value of attribute operand.
1590 1591 1592 |
# File 'lib/active_record/refined/ast.rb', line 1590 def operand @operand end |
Instance Method Details
#to_arel(table, model) ⇒ Object
1596 1597 1598 |
# File 'lib/active_record/refined/ast.rb', line 1596 def to_arel(table, model) Arel::Nodes::Not.new(operand.to_arel(table, model)) end |