removed jruby specific hack, fixed failing tests on jruby

This commit is contained in:
John Mair 2011-12-30 01:16:15 +13:00
parent 38a19e8d3e
commit 6e5910285c
1 changed files with 1 additions and 6 deletions

View File

@ -39,12 +39,7 @@ class Pry
when arity == 0 when arity == 0
[] []
when arity > 0 when arity > 0
# another jruby hack args.values_at *(0..(arity - 1)).to_a
if Pry::Helpers::BaseHelpers.jruby?
args[0..(arity - 1)]
else
args.values_at *(0..(arity - 1)).to_a
end
end end
end end
end end