class IDL::AST::UnionMember
Attributes
labels[R]
Public Class Methods
new(_name, _enclosure, params)
click to toggle source
Calls superclass method
IDL::AST::Member::new
# File lib/ridl/node.rb, line 2803 def initialize(_name, _enclosure, params) super(_name, _enclosure, params) ## if any of the labels is 'default' forget about the others if params[:labels].include?(:default) @labels = [:default] else @labels = params[:labels] end end
Public Instance Methods
instantiate(instantiation_context, _enclosure)
click to toggle source
Calls superclass method
IDL::AST::Member#instantiate
# File lib/ridl/node.rb, line 2822 def instantiate(instantiation_context, _enclosure) _params = { labels: @labels.collect { |l| l == :default ? l : l.instantiate(instantiation_context) } } super(instantiation_context, _enclosure, _params) end
marshal_dump()
click to toggle source
Calls superclass method
IDL::AST::Member#marshal_dump
# File lib/ridl/node.rb, line 2813 def marshal_dump super() << @labels end
marshal_load(vars)
click to toggle source
Calls superclass method
IDL::AST::Member#marshal_load
# File lib/ridl/node.rb, line 2817 def marshal_load(vars) @labels = vars.pop super(vars) end