class Keisan::Tokens::BitwiseOperator
Constants
- AND
- NOT
- OR
- REGEX
- XOR
Public Class Methods
regex()
click to toggle source
# File lib/keisan/tokens/bitwise_operator.rb, line 11 def self.regex REGEX end
Public Instance Methods
operator_type()
click to toggle source
# File lib/keisan/tokens/bitwise_operator.rb, line 15 def operator_type case string when AND :"&" when OR :"|" when XOR :"^" when NOT string.count("~").even? ? :"~~" : :"~" end end