class IDL::AST::Enum
Attributes
idltype[R]
Public Class Methods
new(_name, _enclosure, _params)
click to toggle source
Calls superclass method
IDL::AST::Leaf::new
# File lib/ridl/node.rb, line 2833 def initialize(_name, _enclosure, _params) super(_name, _enclosure) @enums = [] @idltype = IDL::Type::Enum.new(self) end
Public Instance Methods
add_enumerator(n)
click to toggle source
# File lib/ridl/node.rb, line 2853 def add_enumerator(n) @enums << n end
enumerators()
click to toggle source
# File lib/ridl/node.rb, line 2849 def enumerators @enums end
instantiate(instantiation_context, _enclosure)
click to toggle source
Calls superclass method
IDL::AST::Leaf#instantiate
# File lib/ridl/node.rb, line 2857 def instantiate(instantiation_context, _enclosure) super(instantiation_context, _enclosure, {}) end
marshal_dump()
click to toggle source
Calls superclass method
IDL::AST::Leaf#marshal_dump
# File lib/ridl/node.rb, line 2839 def marshal_dump super() << @idltype << @enums end
marshal_load(vars)
click to toggle source
Calls superclass method
IDL::AST::Leaf#marshal_load
# File lib/ridl/node.rb, line 2843 def marshal_load(vars) @enums = vars.pop @idltype = vars.pop super(vars) end