class Reading::Csv::Parse::ParseLine::ParseAuthor

Public Instance Methods

call(name, _columns = nil) click to toggle source
# File lib/reading/csv/parse_attributes.rb, line 26
def call(name, _columns = nil)
  name.sub(/\A#{config.fetch(:csv).fetch(:regex).fetch(:formats)}/, "")
      .match(/.+(?=#{config.fetch(:csv).fetch(:short_separator)})/)
      &.to_s
      &.strip
end