Module: Diffing::Formats::Html
- Defined in:
- lib/diffing/formats/html.rb
Class Method Summary collapse
Class Method Details
.change(from, to) ⇒ Object
22 23 24 |
# File 'lib/diffing/formats/html.rb', line 22 def change( from, to ) remove( from ) + insert( to ) end |
.insert(value) ⇒ Object
14 15 16 |
# File 'lib/diffing/formats/html.rb', line 14 def insert( value ) "<ins>#{ value }</ins>" end |
.remove(value) ⇒ Object
18 19 20 |
# File 'lib/diffing/formats/html.rb', line 18 def remove( value ) "<del>#{ value }</del>" end |
.source(value) ⇒ Object
10 11 12 |
# File 'lib/diffing/formats/html.rb', line 10 def source( value ) value end |