Method: JsonDiff::AdditionIndexMap#map

Defined in:
lib/json-diff/index-map.rb

#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