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