Sha256: 204e0f2794f35112235f904f0d2300d50870800a8e7ed002da807bb5e1322eb9
Contents?: true
Size: 384 Bytes
Versions: 17
Compression:
Stored size: 384 Bytes
Contents
class Irwi::Comparators::Spans::ChangedSpan attr_accessor :action, :old_value, :new_value def initialize( act, ov, nv ) @action = act @old_value = ov @new_value = nv end def to_s s = '' s << "<span class=\"removed\">#{@old_value}</span>" if @old_value s << "<span class=\"added\">#{@new_value}</span>" if @new_value s end end
Version data entries
17 entries across 17 versions & 1 rubygems