class Reading::Csv::Parse::ParseLine::ParseTitle
Public Instance Methods
call(name, _columns = nil)
click to toggle source
# File lib/reading/csv/parse_attributes.rb, line 35 def call(name, _columns = nil) name.sub(/\A#{config.fetch(:csv).fetch(:regex).fetch(:formats)}/, "") .sub(/.+#{config.fetch(:csv).fetch(:short_separator)}/, "") .sub(/#{config.fetch(:csv).fetch(:long_separator)}.+\z/, "") .strip .presence end