Class: KRPC::Types::TupleType
Instance Attribute Summary collapse
-
#value_types ⇒ Object
readonly
Returns the value of attribute value_types.
Attributes inherited from TypeBase
Instance Method Summary collapse
-
#initialize(pb_type) ⇒ TupleType
constructor
A new instance of TupleType.
Constructor Details
#initialize(pb_type) ⇒ TupleType
Returns a new instance of TupleType.
131 132 133 134 |
# File 'lib/krpc/types.rb', line 131 def initialize(pb_type) @value_types = pb_type.types.map {|t| TypeStore[t] } super(pb_type, Array) end |
Instance Attribute Details
#value_types ⇒ Object (readonly)
Returns the value of attribute value_types.
130 131 132 |
# File 'lib/krpc/types.rb', line 130 def value_types @value_types end |