diff options
author | Jordon Bedwell <jordon@envygeeks.com> | 2012-03-14 11:40:42 -0500 |
---|---|---|
committer | Jordon Bedwell <jordon@envygeeks.com> | 2012-03-14 11:40:42 -0500 |
commit | e8152e378c15ec7e0fad5f93d430799e432d66c8 (patch) | |
tree | 024d67ae42627e8757846b638f597e2d4b5f2380 | |
parent | f7d92c2e4973a8e543b9442a798936125101b28c (diff) | |
download | pry-feature/plugin-class.tar.gz |
Remove the unnecessary check for String since we map, can't wait for lazy.map(&:to_s) ;).feature/plugin-class
-rw-r--r-- | lib/pry/plugins.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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 |