Class: Protobuf::Field::BaseFieldObjectDefinitions::RepeatedNotPackedSetMethod
- Inherits:
-
Object
- Object
- Protobuf::Field::BaseFieldObjectDefinitions::RepeatedNotPackedSetMethod
- Defined in:
- lib/protobuf/field/base_field_object_definitions.rb
Instance Method Summary collapse
- #call(message_instance, bytes) ⇒ Object
-
#initialize(selph) ⇒ RepeatedNotPackedSetMethod
constructor
A new instance of RepeatedNotPackedSetMethod.
Constructor Details
#initialize(selph) ⇒ RepeatedNotPackedSetMethod
Returns a new instance of RepeatedNotPackedSetMethod.
143 144 145 146 |
# File 'lib/protobuf/field/base_field_object_definitions.rb', line 143 def initialize(selph) @selph = selph @name = selph.name end |
Instance Method Details
#call(message_instance, bytes) ⇒ Object
148 149 150 |
# File 'lib/protobuf/field/base_field_object_definitions.rb', line 148 def call(, bytes) [@name] << @selph.decode(bytes) end |