class Reading::Csv::Parse::ParseLine::ParseFromGenreColumn

not an item attribute; only shares common behavior across the below attribute parsers.

Public Instance Methods

all_genres(columns) click to toggle source
# File lib/reading/csv/parse_attributes.rb, line 72
def all_genres(columns)
  @@all_genres ||=
    columns[:genres]
      .split(config.fetch(:csv).fetch(:separator))
      .map(&:strip)
      .map(&:presence)
      .compact.presence
end