Module: Sequel::SQL::BitwiseMethods

Included in:
NumericExpression
Defined in:
lib/sequel/lib/sequel/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


152
153
154
# File 'lib/sequel/lib/sequel/sql.rb', line 152

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