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,15 +39,10 @@ class Pry
when arity == 0 when arity == 0
[] []
when arity > 0 when arity > 0
# another jruby hack
if Pry::Helpers::BaseHelpers.jruby?
args[0..(arity - 1)]
else
args.values_at *(0..(arity - 1)).to_a args.values_at *(0..(arity - 1)).to_a
end end
end end
end end
end
include Enumerable include Enumerable
include Pry::Helpers::BaseHelpers include Pry::Helpers::BaseHelpers