1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Fix doc in Object#respond_to_missing? (#2239)

This commit is contained in:
songhuangcn 2019-08-15 23:20:52 +08:00 committed by Takashi Kokubun
parent 715218c430
commit d2070f2e45

View file

@ -4160,7 +4160,7 @@ rb_obj_dig(int argc, VALUE *argv, VALUE obj, VALUE notfound)
* DELEGATE = [:puts, :p]
*
* def method_missing(name, *args, &block)
* super unless DELEGATE.include? name
* return super unless DELEGATE.include? name
* ::Kernel.send(name, *args, &block)
* end
*