Class: ActiveRecord::Refined::AST::BitwiseNot

Inherits:
Node
  • Object
show all
Includes:
Arithmetics, Predications
Defined in:
lib/active_record/refined/ast.rb

Overview

~, which every adapter has. MySQL answers with the unsigned 64-bit number where the others answer with a negative one; the bits are the same, and only reading the value back tells them apart.

Instance Method Summary collapse

Methods included from Arithmetics

#&, #*, #+, #-, #/, #<<, #>>, #^, #bitwise_and, #bitwise_not, #bitwise_or, #bitwise_xor, #|, #~

Methods included from Predications

#!=, #!~, #<, #<=, #==, #=~, #>, #>=, #between?, #bury, #casecmp?, #contains?, #dig, #dig_text, #distinct_from?, #end_with?, #except, #false?, #ilike?, #in?, #include?, #intersect?, #key?, #keys, #like?, #member?, #not_between?, #not_distinct_from?, #not_false?, #not_ilike?, #not_in?, #not_like?, #not_null?, #not_true?, #null?, #start_with?, #subset?, #superset?, #true?, #when

Methods inherited from Node

#as, #asc, #collate, #desc

Constructor Details

#initialize(operand) ⇒ BitwiseNot

Returns a new instance of BitwiseNot.



1662
1663
1664
# File 'lib/active_record/refined/ast.rb', line 1662

def initialize(operand)
  @operand = check_operand(operand)
end