Class: IDL::Expression::Enumerator
- Inherits:
-
IDL::Expression
- Object
- IDL::Expression
- IDL::Expression::Enumerator
- Defined in:
- lib/ridl/expression.rb
Instance Attribute Summary collapse
-
#node ⇒ Object
readonly
Returns the value of attribute node.
Attributes inherited from IDL::Expression
Instance Method Summary collapse
-
#initialize(node) ⇒ Enumerator
constructor
A new instance of Enumerator.
Methods inherited from IDL::Expression
#instantiate, #is_template?, #typename
Constructor Details
#initialize(node) ⇒ Enumerator
Returns a new instance of Enumerator.
70 71 72 73 74 75 76 77 78 79 80 |
# File 'lib/ridl/expression.rb', line 70 def initialize(node) if $DEBUG if not IDL::AST::Enumerator === node raise RuntimeError, "#{node.scoped_name} must be enumerator: #{node.class.name}." end end @node = node @idltype = node.idltype @value = node.value end |
Instance Attribute Details
#node ⇒ Object (readonly)
Returns the value of attribute node.
69 70 71 |
# File 'lib/ridl/expression.rb', line 69 def node @node end |