DEV: Prefer public_send over send.

This commit is contained in:
Guo Xiang Tan
2019-05-07 09:27:05 +08:00
parent 9be70a22cd
commit 152238b4cf
74 changed files with 216 additions and 129 deletions

View File

@ -77,7 +77,7 @@ def top(cols, aggregator, count, aggregator_formatter = nil)
rows.each do |row|
cols.length.times do |i|
print row[i].to_s.send(col_just[i], col_widths[i])
print row[i].to_s.public_send(col_just[i], col_widths[i])
print " "
end
puts