Module: IRT::Differ::Format

Extended by:
Format
Included in:
Format
Defined in:
lib/irt/differ.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#optionsObject

Returns the value of attribute options.



37
38
39
# File 'lib/irt/differ.rb', line 37

def options
  @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