Class: IDL::Expression::Operation::Boolean2
- Inherits:
-
Integer2
- Object
- IDL::Expression
- IDL::Expression::Operation
- Integer2
- IDL::Expression::Operation::Boolean2
- Defined in:
- lib/ridl/expression.rb
Constant Summary collapse
- Applicable =
[ IDL::Type::Boolean ] + Integer2::Applicable
Constants inherited from Integer2
Constants inherited from IDL::Expression::Operation
Instance Attribute Summary
Attributes inherited from IDL::Expression::Operation
Attributes inherited from IDL::Expression
Class Method Summary collapse
Methods inherited from Integer2
Methods inherited from IDL::Expression::Operation
#initialize, #instantiate, #is_template?, #set_type, suite_type
Methods inherited from IDL::Expression
#instantiate, #is_template?, #typename
Constructor Details
This class inherits a constructor from IDL::Expression::Operation
Class Method Details
.checktype(t1, t2) ⇒ Object
172 173 174 175 176 177 178 179 180 |
# File 'lib/ridl/expression.rb', line 172 def Boolean2.checktype(t1, t2) superclass.checktype(*types) t = IDL::Type::Boolean if (t1 == t && t2 != t) or (t1 != t && t2 == t) raise RuntimeError, "#{self.name} about #{t1.typename} and #{t2.typename} is illegal." end end |