fix: CSV::Row.field -> CSV::Row#field #2905
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
https://docs.ruby-lang.org/ja/latest/method/CSV=3a=3aRow/i/fields.html から、以下の
CSV::Row.field
のリンクを踏むと、404になります。Ruby 3.3.4で確認すると、
undefined method
field' for class CSV::Row (NoMethodError)`になりました。正しくは、インスタンスメソッドであるため修正を提案します。
ref: https://github.com/ruby/csv/blob/ce9119802be7685ec93a68741a5d9da3dbe86122/lib/csv/row.rb#L545