Class: JsonDiff::RemovalIndexMap

Inherits:
IndexMap
  • Object
show all
Defined in:
lib/json-diff/index-map.rb

Instance Method Summary collapse

Methods inherited from IndexMap

#initialize

Constructor Details

This class inherits a constructor from JsonDiff::IndexMap

Instance Method Details

#map(index) ⇒ Object



41
42
43
44
45
46
47
# File 'lib/json-diff/index-map.rb', line 41

def map(index)
  if index >= @pivot
    index - 1
  else
    index
  end
end