Class: Protobuf::Field::BaseFieldObjectDefinitions::MapValueFromValues
- Inherits:
-
Object
- Object
- Protobuf::Field::BaseFieldObjectDefinitions::MapValueFromValues
- Defined in:
- lib/protobuf/field/base_field_object_definitions.rb
Instance Method Summary collapse
- #call(values) ⇒ Object
-
#initialize(selph) ⇒ MapValueFromValues
constructor
A new instance of MapValueFromValues.
Constructor Details
#initialize(selph) ⇒ MapValueFromValues
Returns a new instance of MapValueFromValues.
452 453 454 455 |
# File 'lib/protobuf/field/base_field_object_definitions.rb', line 452 def initialize(selph) @selph = selph @fully_qualified_name = selph.fully_qualified_name end |
Instance Method Details
#call(values) ⇒ Object
457 458 459 |
# File 'lib/protobuf/field/base_field_object_definitions.rb', line 457 def call(values) values[@fully_qualified_name] ||= ::Protobuf::Field::FieldHash.new(@selph) end |