mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* 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
This commit is contained in:
parent
24f5161c39
commit
e090c62277
2 changed files with 6 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
|||
Mon Jan 25 22:31:53 2010 Yusuke Endoh <mame@tsg.ne.jp>
|
||||
|
||||
* test/ruby/envutil.rb: use method_defined? instead of
|
||||
instance_methods.include?.
|
||||
|
||||
Mon Jan 25 22:08:20 2010 Yusuke Endoh <mame@tsg.ne.jp>
|
||||
|
||||
* cont.c (rb_cont_call, cont_restore_1): remove trap_tag check because
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue