diff options
author | franz <Franz.Netykafka@runbox.com> | 2009-06-28 23:14:39 +0200 |
---|---|---|
committer | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2009-08-26 23:31:38 +0200 |
commit | b4342233a61b23035f61f0a796a7aa196744b99d (patch) | |
tree | 074c79014763673ec6382414f2a4e1d0bdd98b32 /lib/rbot/ircbot.rb | |
parent | b596f88703fb6d87b1fd16ba33d60efa9261d138 (diff) |
ruby 1.9: fix *methods.include?
Since in 1.9 methods arrays have symbols instead of strings, fix it by
changing into respond_to? and method_defined?
Diffstat (limited to 'lib/rbot/ircbot.rb')
-rw-r--r-- | lib/rbot/ircbot.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rbot/ircbot.rb b/lib/rbot/ircbot.rb index 9317fd4d..2f146c29 100644 --- a/lib/rbot/ircbot.rb +++ b/lib/rbot/ircbot.rb @@ -23,7 +23,7 @@ $log_thread = nil require 'pp' -unless Kernel.instance_methods.include?("pretty_inspect") +unless Kernel.respond_to? :pretty_inspect def pretty_inspect PP.pp(self, '') end |