From e8152e378c15ec7e0fad5f93d430799e432d66c8 Mon Sep 17 00:00:00 2001 From: Jordon Bedwell Date: Wed, 14 Mar 2012 11:40:42 -0500 Subject: Remove the unnecessary check for String since we map, can't wait for lazy.map(&:to_s) ;). --- lib/pry/plugins.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/pry/plugins.rb b/lib/pry/plugins.rb index c67866e4..7eb13505 100644 --- a/lib/pry/plugins.rb +++ b/lib/pry/plugins.rb @@ -83,7 +83,7 @@ class Pry def disable(*values) values.map(&:to_s).each do |value| - if !value.empty? && value.is_a?(String) && value !~ /\s/ && value !~ /\A\d+\Z/ + if !value.empty? && value !~ /\s/ && value !~ /\A\d+\Z/ @blacklist.push(value) end end -- cgit v1.2.1