Fix deprecated keyword argument warnings in Ruby 2.7.
Fix this warning:
warning: Using the last argument as keyword parameters is
deprecated; maybe ** should be added to the call.
ref: https://www.ruby-lang.org/en/news/2019/12/12/separation-of-positional-and-keyword-arguments-in-ruby-3-0/#delegation
This commit is contained in:
@@ -49,8 +49,8 @@ class TableBuilder
|
||||
yield self if block_given?
|
||||
end
|
||||
|
||||
def column(*options, &block)
|
||||
@columns << Column.new(*options, &block)
|
||||
def column(*args, **options, &block)
|
||||
@columns << Column.new(*args, **options, &block)
|
||||
end
|
||||
|
||||
def all_row_attributes(item, i)
|
||||
|
||||
Reference in New Issue
Block a user