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