Class: MessagePack::IDL::IR::Enum
Instance Attribute Summary collapse
-
#fields ⇒ Object
readonly
Returns the value of attribute fields.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(name, fields) ⇒ Enum
constructor
A new instance of Enum.
Methods inherited from Type
#list_type?, #map_type?, #nullable_type?, #parameterized_type?, #real_type, #void_type?
Constructor Details
#initialize(name, fields) ⇒ Enum
Returns a new instance of Enum.
314 315 316 317 |
# File 'lib/msgpack/idl/ir.rb', line 314 def initialize(name, fields) @name = name @fields = fields end |
Instance Attribute Details
#fields ⇒ Object (readonly)
Returns the value of attribute fields.
318 319 320 |
# File 'lib/msgpack/idl/ir.rb', line 318 def fields @fields end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
318 319 320 |
# File 'lib/msgpack/idl/ir.rb', line 318 def name @name end |