1
0
Fork 0
mirror of https://github.com/pry/pry.git synced 2022-11-09 12:35:05 -05:00

Fixes #195. #correct_arg_arity for JRUBY was broken.

This commit is contained in:
Darrick Wiebe 2011-08-22 15:52:03 -04:00
parent 001de13e3b
commit 6a32aee20d

View file

@ -24,9 +24,10 @@ class Pry
case arity <=> 0
when -1
args
when 1, 0
# Keep 1.8 happy
args.values_at 0..(arity - 1)
when 0
[]
when 1
args[0, arity]
end
end
end