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