Class: ZOMG::IDL::Nodes::Constant
- Defined in:
- lib/zomg/idl/nodes/constant.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
Returns the value of attribute name.
-
#type ⇒ Object
Returns the value of attribute type.
Attributes inherited from Node
Instance Method Summary collapse
-
#initialize(type, name, value) ⇒ Constant
constructor
A new instance of Constant.
Methods inherited from Node
#duhr, #to_i, #to_ruby, #to_ruby_sexp, #to_sexp
Methods included from Visitable
Constructor Details
#initialize(type, name, value) ⇒ Constant
Returns a new instance of Constant.
7 8 9 10 11 |
# File 'lib/zomg/idl/nodes/constant.rb', line 7 def initialize(type, name, value) @type = type @name = name super(value) end |
Instance Attribute Details
#name ⇒ Object
Returns the value of attribute name.
5 6 7 |
# File 'lib/zomg/idl/nodes/constant.rb', line 5 def name @name end |
#type ⇒ Object
Returns the value of attribute type.
5 6 7 |
# File 'lib/zomg/idl/nodes/constant.rb', line 5 def type @type end |