Class: MessagePack::IDL::IR::Enum

Inherits:
Type
  • Object
show all
Defined in:
lib/msgpack/idl/ir.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#fieldsObject (readonly)

Returns the value of attribute fields.



318
319
320
# File 'lib/msgpack/idl/ir.rb', line 318

def fields
  @fields
end

#nameObject (readonly)

Returns the value of attribute name.



318
319
320
# File 'lib/msgpack/idl/ir.rb', line 318

def name
  @name
end