Class: ZOMG::IDL::Nodes::Parameter

Inherits:
Node
  • Object
show all
Defined in:
lib/zomg/idl/nodes/parameter.rb

Instance Attribute Summary collapse

Attributes inherited from Node

#children

Instance Method Summary collapse

Methods inherited from Node

#duhr, #to_i, #to_ruby, #to_ruby_sexp, #to_sexp

Methods included from Visitable

#accept

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

#attributeObject

Returns the value of attribute attribute.



5
6
7
# File 'lib/zomg/idl/nodes/parameter.rb', line 5

def attribute
  @attribute
end

#declaratorObject

Returns the value of attribute declarator.



5
6
7
# File 'lib/zomg/idl/nodes/parameter.rb', line 5

def declarator
  @declarator
end

#typeObject

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

#nameObject



12
13
14
# File 'lib/zomg/idl/nodes/parameter.rb', line 12

def name
  declarator.name
end