Class: Keisan::AST::UnaryBitwiseNot
- Inherits:
-
UnaryOperator
- Object
- Node
- Parent
- UnaryOperator
- Keisan::AST::UnaryBitwiseNot
- Defined in:
- lib/keisan/ast/unary_bitwise_not.rb
Instance Attribute Summary
Attributes inherited from Parent
Instance Method Summary collapse
Methods inherited from UnaryOperator
Methods inherited from Parent
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 |