From e090c62277bfd6730d799dbe7094e70013dbbdf7 Mon Sep 17 00:00:00 2001 From: mame Date: Mon, 25 Jan 2010 13:33:02 +0000 Subject: [PATCH] * test/ruby/envutil.rb: use method_defined? instead of instance_methods.include?. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26408 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 5 +++++ test/ruby/envutil.rb | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 03029ea7d1..d5074ded4b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Mon Jan 25 22:31:53 2010 Yusuke Endoh + + * test/ruby/envutil.rb: use method_defined? instead of + instance_methods.include?. + Mon Jan 25 22:08:20 2010 Yusuke Endoh * cont.c (rb_cont_call, cont_restore_1): remove trap_tag check because diff --git a/test/ruby/envutil.rb b/test/ruby/envutil.rb index 1d9c4f6990..1954dfc221 100644 --- a/test/ruby/envutil.rb +++ b/test/ruby/envutil.rb @@ -208,7 +208,7 @@ else module RbConfig @ruby = EnvUtil.rubybin class << self - undef ruby if instance_methods.include?(:ruby) + undef ruby if method_defined?(:ruby) attr_reader :ruby end dir = File.dirname(ruby)