Sha256: 8e6fccc55c382c1a58aae08a50aec69103916b9bfe0df0cc10d439edf4dfcba7
Contents?: true
Size: 468 Bytes
Versions: 2
Compression:
Stored size: 468 Bytes
Contents
class Errata class Erratum class Replace < Erratum def correction @correction ||= /\Aabbr\((.*)\)\z/.match(options['x']) ? '\1' + options['y'].to_s + '\2' : options['y'].to_s end def correct!(row) if targets? row if matching_expression.blank? row[section] = correction.dup else row[section].gsub! matching_expression, correction end end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
errata-1.0.3 | lib/errata/erratum/replace.rb |
errata-1.0.2 | lib/errata/erratum/replace.rb |