Method: Keisan::AST::Number#|

Defined in:
lib/keisan/ast/number.rb

#|(other) ⇒ Object



109
110
111
112
113
114
115
116
117
# File 'lib/keisan/ast/number.rb', line 109

def |(other)
  other = other.to_node
  case other
  when Number
    Number.new(value | other.value)
  else
    super
  end
end