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

Version Path
irwi-0.2.4 lib/irwi/comparators/spans/changed_span.rb
irwi-0.2.3 lib/irwi/comparators/spans/changed_span.rb
irwi-0.2.2 lib/irwi/comparators/spans/changed_span.rb
irwi-0.2.1 lib/irwi/comparators/spans/changed_span.rb
irwi-0.2.0 lib/irwi/comparators/spans/changed_span.rb
irwi-0.1.11 lib/irwi/comparators/spans/changed_span.rb
irwi-0.1.10 lib/irwi/comparators/spans/changed_span.rb
irwi-0.1.9 lib/irwi/comparators/spans/changed_span.rb
irwi-0.1.7 lib/irwi/comparators/spans/changed_span.rb
irwi-0.1.6 lib/irwi/comparators/spans/changed_span.rb
irwi-0.1.5 lib/irwi/comparators/spans/changed_span.rb
irwi-0.1.4 lib/irwi/comparators/spans/changed_span.rb
irwi-0.1.3 lib/irwi/comparators/spans/changed_span.rb
irwi-0.1.2 lib/irwi/comparators/spans/changed_span.rb
irwi-0.1.1 lib/irwi/comparators/spans/changed_span.rb
irwi-0.1.0 lib/irwi/comparators/spans/changed_span.rb
irwi-0.0.0 lib/irwi/comparators/spans/changed_span.rb