Class: MessagePack::IDL::IR::GenericType
- Inherits:
-
Object
- Object
- MessagePack::IDL::IR::GenericType
- Defined in:
- lib/msgpack/idl/ir.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#type_params ⇒ Object
readonly
Returns the value of attribute type_params.
Instance Method Summary collapse
- #==(o) ⇒ Object
-
#initialize(name, type_params) ⇒ GenericType
constructor
A new instance of GenericType.
- #list_type? ⇒ Boolean
- #map_type? ⇒ Boolean
Constructor Details
#initialize(name, type_params) ⇒ GenericType
Returns a new instance of GenericType.
133 134 135 136 |
# File 'lib/msgpack/idl/ir.rb', line 133 def initialize(name, type_params) @name = name @type_params = type_params end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
137 138 139 |
# File 'lib/msgpack/idl/ir.rb', line 137 def name @name end |
#type_params ⇒ Object (readonly)
Returns the value of attribute type_params.
137 138 139 |
# File 'lib/msgpack/idl/ir.rb', line 137 def type_params @type_params end |
Instance Method Details
#==(o) ⇒ Object
147 148 149 150 |
# File 'lib/msgpack/idl/ir.rb', line 147 def ==(o) o.is_a?(GenericType) && @name == o.name && @type_params.size == o.type_params.size end |
#list_type? ⇒ Boolean
139 140 141 |
# File 'lib/msgpack/idl/ir.rb', line 139 def list_type? false end |
#map_type? ⇒ Boolean
143 144 145 |
# File 'lib/msgpack/idl/ir.rb', line 143 def map_type? false end |