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:
parent
e0da73e73d
commit
eeda5313f8
1 changed files with 1 additions and 1 deletions
|
@ -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]}"
|
||||
|
|
Loading…
Add table
Reference in a new issue