Class: MessagePack::IDL::IR::GenericType

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

Direct Known Subclasses

PrimitiveGenericType

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#nameObject (readonly)

Returns the value of attribute name.



137
138
139
# File 'lib/msgpack/idl/ir.rb', line 137

def name
  @name
end

#type_paramsObject (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

Returns:

  • (Boolean)


139
140
141
# File 'lib/msgpack/idl/ir.rb', line 139

def list_type?
	false
end

#map_type?Boolean

Returns:

  • (Boolean)


143
144
145
# File 'lib/msgpack/idl/ir.rb', line 143

def map_type?
	false
end