Sha256: e9ef891f3a1b358ab637f56cad78e419edc1fcbc0ed11cdfa5426a889833d7ef
Contents?: true
Size: 417 Bytes
Versions: 8
Compression:
Stored size: 417 Bytes
Contents
class Irwi::Comparators::Base def render_changes( old_text, new_text ) build_changes( old_text, new_text ).join('').gsub( /\r?\n/, '<br />' ) end protected def new_not_changed( value ) Irwi::Comparators::Spans::NotChangedSpan.new( value ) end def new_changed( action, old_value, new_value ) Irwi::Comparators::Spans::ChangedSpan.new( action, old_value, new_value ) end end
Version data entries
8 entries across 8 versions & 1 rubygems