RUBY_DESCRIPTION #=> "ruby 2.1.0dev (2013-08-09 trunk 42473) [x86_64-linux]
$VERBOSE = true
obj = Object.new
mod = Module.new.taint
obj.taint.singleton_class.tainted? #=> true
obj2 = Object.new
obj2.singleton_class.taint
obj2.tainted? #=> false
obj3 = Object.new
obj3.extend mod
obj3.tainted? #=> false
obj4 = Object.new
obj4.singleton_class.__send__ :include, mod
obj4.tainted? #=> false
(mod2 = Module.new { include mod }).tainted? #=> true
Module.new { include mod2 }.tainted? #=> true
(cls = Class.new { include mod2 }).tainted? #=> true
Class.new(cls).tainted? #=> false
Class.new(Class.new.taint).tainted? #=> false
cls.new.tainted? #=> false
Class.new.taint.new.tainted? #=> false
More than 5 years have passed since last update.
Register as a new user and use Qiita more conveniently
- You get articles that match your needs
- You can efficiently read back useful information
- You can use dark theme
List of users who liked
00