# File lib/pickle/parser.rb, line 50 def parse_index(index) case index when nil, '', 'last' then -1 when /#{capture_number_in_ordinal}/ then $1.to_i - 1 when 'first' then 0 end end