Module: Sequel::SQL::BitwiseMethods

Included in:
NumericExpression
Defined in:
lib/sequel_core/sql.rb

Overview

This defines the bitwise methods &, |, ^, ~, <<, and >>. Because these methods overlap with the standard BooleanMethods methods, and they only make sense for numbers, they are only included in NumericExpression.

Instance Method Summary collapse

Instance Method Details

#~Object

Do the bitwise compliment of the self



150
151
152
# File 'lib/sequel_core/sql.rb', line 150

def ~
  NumericExpression.new(:'B~', self)
end