Class: KRPC::Types::ListType
Instance Attribute Summary collapse
-
#value_type ⇒ Object
readonly
Returns the value of attribute value_type.
Attributes inherited from TypeBase
Instance Method Summary collapse
-
#initialize(pb_type) ⇒ ListType
constructor
A new instance of ListType.
Constructor Details
#initialize(pb_type) ⇒ ListType
Returns a new instance of ListType.
115 116 117 118 |
# File 'lib/krpc/types.rb', line 115 def initialize(pb_type) @value_type = TypeStore[pb_type.types.first] super(pb_type, Array) end |
Instance Attribute Details
#value_type ⇒ Object (readonly)
Returns the value of attribute value_type.
114 115 116 |
# File 'lib/krpc/types.rb', line 114 def value_type @value_type end |