Sha256: 3b87d9f820e0e39810a6d53aa78ef968aca4b8631b3f9cf4caaa313f93203abe
Contents?: true
Size: 400 Bytes
Versions: 2
Compression:
Stored size: 400 Bytes
Contents
class Errata class Erratum class Delete < Erratum def backfill # otherwise abbr(X) will kill the characters before and after the match @backfill ||= /\Aabbr\((.*)\)\z/.match(options['x']) ? '\1\2' : '' end def correct!(row) if targets? row row[section].gsub! matching_expression, backfill end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
errata-1.0.3 | lib/errata/erratum/delete.rb |
errata-1.0.2 | lib/errata/erratum/delete.rb |