Sha256: 0dca36cd5f25b2c15291112d7521f4eafb290647de2696b0c8917455c0cd2a2f
Contents?: true
Size: 347 Bytes
Versions: 35
Compression:
Stored size: 347 Bytes
Contents
module Krikri::Enrichments ## # Strip leading colons # # StripLeadingColons.new.enrich_value(";:\tmoominpa()pa;;;") # # => "\tmoominpa()pa;;;" class StripLeadingColons include Audumbla::FieldEnrichment def enrich_value(value) return value unless value.is_a? String value.gsub(/^[\;\:]*/, '') end end end
Version data entries
35 entries across 35 versions & 1 rubygems