Sha256: 85c9d16c6dfeb5a9084b5d0b209bfcb847da88ecaeb10d2309f61c4ad56c427a
Contents?: true
Size: 501 Bytes
Versions: 4
Compression:
Stored size: 501 Bytes
Contents
require 'irwi/comparators/spans/changed_span' require 'irwi/comparators/spans/not_changed_span' 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
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
irwi-0.5.0 | lib/irwi/comparators/base.rb |
irwi-0.4.2 | lib/irwi/comparators/base.rb |
irwi-0.4.1 | lib/irwi/comparators/base.rb |
irwi-0.4.0 | lib/irwi/comparators/base.rb |