Aliased method for each_index is invalid:
|
# array aliases into enumerable |
|
alias_method :each_index, :each_with_index |
|
alias_method :slice, :[] |
|
alias_method :values_at, :select |
|
alias_method :map, :collect |
Ref:
What version of protobuf and what language are you using?
Version: master
Language: ruby
What operating system (Linux, Windows, ...) and version?
Docker: ruby:2.7-slim-buster
What runtime / compiler are you using (e.g., python version or gcc version)
N/A
What did you do?
Steps to reproduce the behavior:
- have a proto with a repeated_field
- build a ruby library
- make use of
each_index
What did you expect to see
The index of the repeated field.
What did you see instead?
The repeated field's value instead.
Make sure you include information that can help us debug (full error message, exception listing, stack trace, logs).
Anything else we should know about your project / environment
N/A
Aliased method for
each_indexis invalid:protobuf/ruby/lib/google/protobuf/repeated_field.rb
Lines 106 to 110 in 63d2f3b
Ref:
What version of protobuf and what language are you using?
Version: master
Language: ruby
What operating system (Linux, Windows, ...) and version?
Docker: ruby:2.7-slim-buster
What runtime / compiler are you using (e.g., python version or gcc version)
N/A
What did you do?
Steps to reproduce the behavior:
each_indexWhat did you expect to see
The index of the repeated field.
What did you see instead?
The repeated field's value instead.
Make sure you include information that can help us debug (full error message, exception listing, stack trace, logs).
Anything else we should know about your project / environment
N/A