summaryrefslogtreecommitdiff
path: root/lib/pry/pry_class.rb
diff options
context:
space:
mode:
authorKyrylo Silin <silin@kyrylo.org>2019-03-01 01:14:08 +0200
committerKyrylo Silin <silin@kyrylo.org>2019-03-01 01:14:08 +0200
commit017fc06722396e54f4fcbdb1f1ab67ebe8fe159c (patch)
tree7dccd8057149c7f3b0fde4e8fb0b1e8aedadec4b /lib/pry/pry_class.rb
parent507c93b67f7d3c0003866338467e2d374bab5cb6 (diff)
downloadpry-017fc06722396e54f4fcbdb1f1ab67ebe8fe159c.tar.gz
rubocop: fix offences of the Style/ClassCheck cop
Diffstat (limited to 'lib/pry/pry_class.rb')
-rw-r--r--lib/pry/pry_class.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/pry/pry_class.rb b/lib/pry/pry_class.rb
index f71de8e6..08dae87c 100644
--- a/lib/pry/pry_class.rb
+++ b/lib/pry/pry_class.rb
@@ -237,7 +237,7 @@ you can add "Pry.config.windows_console_warning = false" to your pryrc.
def self.view_clip(obj, options = {})
max = options.fetch :max_length, 60
id = options.fetch :id, false
- if obj.kind_of?(Module) && obj.name.to_s != "" && obj.name.to_s.length <= max
+ if obj.is_a?(Module) && obj.name.to_s != "" && obj.name.to_s.length <= max
obj.name.to_s
elsif Pry.main == obj
# special-case to support jruby.