Skip to content

Commit

Permalink
Update Object#respond_to?
Browse files Browse the repository at this point in the history
  • Loading branch information
sho-h committed Nov 13, 2013
1 parent 2320566 commit 36e6076
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions refm/api/src/_builtin/Object
Expand Up @@ -1416,6 +1416,14 @@ clone や dup はオブジェクト自身を複製するだけで、オブジェ
オブジェクトが メソッド name を持つというのは、
オブジェクトが メソッド name に応答することができることをいいます。

#@since 1.9.2
Windows での [[m:Process.fork]] や GNU/Linux での [[m:File.lchmod]] の
ような [[c:NotImplementedError]] が発生する場合は false を返します。

メソッドが定義されていない場合は、[[m:Object#respond_to_missing?]] を呼
び出してその結果を返します。
#@end

@param name [[c:Symbol]] または文字列で指定するメソッド名です。

#@since 2.0.0
Expand Down

0 comments on commit 36e6076

Please sign in to comment.