Class: ZOMG::IDL::Nodes::Typedef

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

Instance Attribute Summary collapse

Attributes inherited from Node

#children, #name

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(type_spec, declarators) ⇒ Typedef

Returns a new instance of Typedef.



6
7
8
9
# File 'lib/zomg/idl/nodes/typedef.rb', line 6

def initialize(type_spec, declarators)
  @type_spec = type_spec
  super(declarators)
end

Instance Attribute Details

#type_specObject

Returns the value of attribute type_spec.



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

def type_spec
  @type_spec
end