Class: JsonDiff::AdditionIndexMap

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



31
32
33
34
35
36
37
# File 'lib/json-diff/index-map.rb', line 31

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