Class: Keisan::AST::UnaryBitwiseNot

Inherits:
UnaryOperator show all
Defined in:
lib/keisan/ast/unary_bitwise_not.rb

Instance Attribute Summary

Attributes inherited from Parent

#children

Instance Method Summary collapse

Methods inherited from UnaryOperator

#initialize

Methods inherited from Parent

#initialize

Constructor Details

This class inherits a constructor from Keisan::AST::UnaryOperator

Instance Method Details

#value(context = nil) ⇒ Object



4
5
6
# File 'lib/keisan/ast/unary_bitwise_not.rb', line 4

def value(context = nil)
  return ~children.first.value(context)
end