Module: IRT::Differ::Format
Instance Attribute Summary collapse
-
#options ⇒ Object
Returns the value of attribute options.
Instance Method Summary collapse
Instance Attribute Details
#options ⇒ Object
Returns the value of attribute options.
37 38 39 |
# File 'lib/irt/differ.rb', line 37 def @options end |
Instance Method Details
#format(change) ⇒ Object
39 40 41 42 43 44 45 |
# File 'lib/irt/differ.rb', line 39 def format(change) (change.is_a?(String) && as_same(change)) || (change.change? && as_change(change)) || (change.delete? && as_delete(change)) || (change.insert? && as_insert(change)) || '' end |