1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Fix keyword argument separation issues in lib

Mostly requires adding ** in either calls or method definitions.
This commit is contained in:
Jeremy Evans 2019-04-07 16:44:49 -07:00
parent 3f67fcd3d5
commit d08e1004e0
Notes: git 2019-08-31 04:40:18 +09:00
13 changed files with 38 additions and 38 deletions

View file

@ -4,6 +4,6 @@ class Array # :nodoc:
# ["CSV", "data"].to_csv
# #=> "CSV,data\n"
def to_csv(**options)
CSV.generate_line(self, options)
CSV.generate_line(self, **options)
end
end

View file

@ -4,6 +4,6 @@ class String # :nodoc:
# "CSV,data".parse_csv
# #=> ["CSV", "data"]
def parse_csv(**options)
CSV.parse_line(self, options)
CSV.parse_line(self, **options)
end
end