aboutsummaryrefslogtreecommitdiffhomepage
path: root/ruby/lib
diff options
context:
space:
mode:
authorGravatar Stuart Campbell <stuart@harto.org>2018-04-30 16:04:13 -0700
committerGravatar Paul Yang <TeBoring@users.noreply.github.com>2018-04-30 16:04:13 -0700
commit05c2d01b61520dd801a2d1a65a28164de7d92bd0 (patch)
treeb66ca0f58ab0b141028a0cb6684cde70d81ad306 /ruby/lib
parent0869b1a0a7455dab94981aa29b8bfb69444fa13e (diff)
Fix RepeatedField#delete_if (#4292)
Make RepeatedField#delete_if consistent with Array#delete_if.
Diffstat (limited to 'ruby/lib')
-rw-r--r--ruby/lib/google/protobuf/repeated_field.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/ruby/lib/google/protobuf/repeated_field.rb b/ruby/lib/google/protobuf/repeated_field.rb
index 11d6c2eb..2dae1e65 100644
--- a/ruby/lib/google/protobuf/repeated_field.rb
+++ b/ruby/lib/google/protobuf/repeated_field.rb
@@ -150,12 +150,12 @@ module Google
end
- %w(delete delete_at delete_if shift slice! unshift).each do |method_name|
+ %w(delete delete_at shift slice! unshift).each do |method_name|
define_array_wrapper_method(method_name)
end
- %w(collect! compact! fill flatten! insert reverse!
+ %w(collect! compact! delete_if fill flatten! insert reverse!
rotate! select! shuffle! sort! sort_by! uniq!).each do |method_name|
define_array_wrapper_with_result_method(method_name)
end