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

use Integer instead of 1.class

This commit is contained in:
robert 2017-06-13 22:16:09 +01:00
parent e0da73e73d
commit eeda5313f8

View file

@ -157,7 +157,7 @@ class Pry
case opts[:i]
when Range
(_pry_.input_array[opts[:i]] || []).join
when 1.class
when Integer
_pry_.input_array[opts[:i]] || ""
else
raise Pry::CommandError, "Not a valid range: #{opts[:i]}"