Class: MessagePack::IDL::IR::PrimitiveType
- Defined in:
- lib/msgpack/idl/ir.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(name) ⇒ PrimitiveType
constructor
A new instance of PrimitiveType.
- #void_type? ⇒ Boolean
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
#name ⇒ Object (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
91 92 93 |
# File 'lib/msgpack/idl/ir.rb', line 91 def void_type? self == Primitive.void end |