Sha256: ffc46105f52a9b267b69fcdfb20ac663906ecb4e92a1ce761b45e42eac851257
Contents?: true
Size: 324 Bytes
Versions: 1
Compression:
Stored size: 324 Bytes
Contents
# frozen_string_literal: true require 'csv' require 'url_finder/readers/base_reader' module UrlFinder # Find URLs in CSV string class CSVReader < BaseReader # Returns the found URLs # @return [Array<String>] the found URLs def urls @urls ||= CSV.parse(content).map(&:first).compact end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
url_finder-0.1.0 | lib/url_finder/readers/csv_reader.rb |