Class: IDL::Expression::Operation::UnaryMinus
- Inherits:
-
Unary
- Object
- IDL::Expression
- IDL::Expression::Operation
- Unary
- IDL::Expression::Operation::UnaryMinus
- Defined in:
- lib/ridl/expression.rb
Constant Summary collapse
- Applicable =
Float2::Applicable
Constants inherited from Unary
IDL::Expression::Operation::Unary::NUMBER_OF_OPERANDS
Constants inherited from IDL::Expression::Operation
Instance Attribute Summary
Attributes inherited from IDL::Expression::Operation
Attributes inherited from IDL::Expression
Instance Method Summary collapse
Methods inherited from IDL::Expression::Operation
#initialize, #instantiate, #is_template?, suite_type
Methods inherited from IDL::Expression
#instantiate, #is_template?, #typename
Constructor Details
This class inherits a constructor from IDL::Expression::Operation
Instance Method Details
#calculate(op) ⇒ Object
209 210 211 |
# File 'lib/ridl/expression.rb', line 209 def calculate(op) -op end |
#set_type ⇒ Object
212 213 214 |
# File 'lib/ridl/expression.rb', line 212 def set_type @idltype = Integer2.suite_sign(@idltype, @value) end |