Class: MessagePack::IDL::IR::PrimitiveType

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

Constructor Details

#initialize(name) ⇒ PrimitiveType

Returns a new instance of PrimitiveType.



86
87
88
# File 'lib/msgpack/idl/ir.rb', line 86

def initialize(name)
	@name = name
end

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name.



89
90
91
# File 'lib/msgpack/idl/ir.rb', line 89

def name
  @name
end

Instance Method Details

#void_type?Boolean

Returns:

  • (Boolean)


91
92
93
# File 'lib/msgpack/idl/ir.rb', line 91

def void_type?
	self == Primitive.void
end