Sha256: 1496de526d33579f5fedb6afbc900348a0588a42941bd80f7595ef73277f6b6c
Contents?: true
Size: 518 Bytes
Versions: 2
Compression:
Stored size: 518 Bytes
Contents
require 'irwi_mod/comparators/spans/changed_span' require 'irwi_mod/comparators/spans/not_changed_span' class IrwiMod::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 ) IrwiMod::Comparators::Spans::NotChangedSpan.new( value ) end def new_changed( action, old_value, new_value ) IrwiMod::Comparators::Spans::ChangedSpan.new( action, old_value, new_value ) end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
irwi_mod-0.0.2 | lib/irwi_mod/comparators/base.rb |
irwi_mod-0.0.1 | lib/irwi_mod/comparators/base.rb |