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:
parent
001de13e3b
commit
6a32aee20d
1 changed files with 4 additions and 3 deletions
|
@ -24,9 +24,10 @@ class Pry
|
||||||
case arity <=> 0
|
case arity <=> 0
|
||||||
when -1
|
when -1
|
||||||
args
|
args
|
||||||
when 1, 0
|
when 0
|
||||||
# Keep 1.8 happy
|
[]
|
||||||
args.values_at 0..(arity - 1)
|
when 1
|
||||||
|
args[0, arity]
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Reference in a new issue