class Pry::CommandSet::Command
def correct_arg_arity(arity, args)
def correct_arg_arity(arity, args) case arity <=> 0 when -1 args when 0 [] when 1 # another jruby hack if Pry::Helpers::BaseHelpers.jruby? args[0..(arity - 1)] else args.values_at 0..(arity - 1) end end end