diff options
author | Hiroshi SHIBATA <[email protected]> | 2024-01-22 17:23:16 +0900 |
---|---|---|
committer | Hiroshi SHIBATA <[email protected]> | 2024-01-22 18:23:05 +0900 |
commit | e195710d10225458008b79dbb734b1cddcd6230d (patch) | |
tree | d861ef13268fcfca3862c5ae28f32780198cf18c /lib/csv/core_ext | |
parent | a70e500494015b54fffd5a83104684eb66239a30 (diff) |
Extract csv
Diffstat (limited to 'lib/csv/core_ext')
-rw-r--r-- | lib/csv/core_ext/array.rb | 9 | ||||
-rw-r--r-- | lib/csv/core_ext/string.rb | 9 |
2 files changed, 0 insertions, 18 deletions
diff --git a/lib/csv/core_ext/array.rb b/lib/csv/core_ext/array.rb deleted file mode 100644 index 8beb06b082..0000000000 --- a/lib/csv/core_ext/array.rb +++ /dev/null @@ -1,9 +0,0 @@ -class Array # :nodoc: - # Equivalent to CSV::generate_line(self, options) - # - # ["CSV", "data"].to_csv - # #=> "CSV,data\n" - def to_csv(**options) - CSV.generate_line(self, **options) - end -end diff --git a/lib/csv/core_ext/string.rb b/lib/csv/core_ext/string.rb deleted file mode 100644 index 9b1d31c2a4..0000000000 --- a/lib/csv/core_ext/string.rb +++ /dev/null @@ -1,9 +0,0 @@ -class String # :nodoc: - # Equivalent to CSV::parse_line(self, options) - # - # "CSV,data".parse_csv - # #=> ["CSV", "data"] - def parse_csv(**options) - CSV.parse_line(self, **options) - end -end |