Class: Markdiff::Operations::RemoveOperation
- Defined in:
- lib/markdiff/operations/remove_operation.rb
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Base
Constructor Details
This class inherits a constructor from Markdiff::Operations::Base
Instance Method Details
#inserted_node ⇒ String
7 8 9 10 11 12 13 14 15 |
# File 'lib/markdiff/operations/remove_operation.rb', line 7 def inserted_node if target_node.name == "li" target_node["class"] = "removed" target_node.inner_html = "<del>#{target_node.inner_html}</del>" target_node else "<del>#{target_node}</del>" end end |