diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2020-10-27 13:42:52 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2020-10-27 16:12:45 +0900 |
commit | 3198e7abd70bd2af977f2bb6c967e9df8f91adb0 (patch) | |
tree | 12265cda813be994c0aaa3a63c66a06f15e91354 /lib/csv | |
parent | acdb8933384da8fce1e8d8a96946eacfaa8897e2 (diff) |
Separate `send` into `public_send` and `__send__`
Diffstat (limited to 'lib/csv')
-rw-r--r-- | lib/csv/row.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/csv/row.rb b/lib/csv/row.rb index a2d03e855f..fd293a0326 100644 --- a/lib/csv/row.rb +++ b/lib/csv/row.rb @@ -84,7 +84,7 @@ class CSV def field(header_or_index, minimum_index = 0) # locate the pair finder = (header_or_index.is_a?(Integer) || header_or_index.is_a?(Range)) ? :[] : :assoc - pair = @row[minimum_index..-1].send(finder, header_or_index) + pair = @row[minimum_index..-1].public_send(finder, header_or_index) # return the field if we have a pair if pair.nil? |