ruby / csv

CSV Reading and Writing
https://ruby.github.io/csv/
BSD 2-Clause "Simplified" License
177 stars 113 forks source link

Use memoized parser_enumerator directly instead of assigning to variable #259

Closed sampatbadhe closed 1 year ago

sampatbadhe commented 1 year ago

Use memoized parser_enumerator directly instead of assigning to variable

kou commented 1 year ago

Why?

sampatbadhe commented 1 year ago

parser_enumerator is already memoized, so I feel no need to assign parser_enumerator to any variable to use.

kou commented 1 year ago

I want to avoid method calls as much as possible here.

sampatbadhe commented 1 year ago

sure @kou :+1: I'll close this PR.