Skip to content

Commit

Permalink
update rb_scan_args
Browse files Browse the repository at this point in the history
  • Loading branch information
sho-h committed Mar 16, 2014
1 parent 98a7e3e commit 6e25230
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions refm/capi/src/class.c.rd
Expand Up @@ -215,6 +215,9 @@ fmt のフォーマットは以下の通りです。
* 必須引数の数 (省略可能な引数があるなら省略不可)
* 省略可能な引数の数 (ゼロ個ならば省略可)
* 残りの引数を Ruby の配列として受け取ることを示す '*' (省略可)
#@since 1.9.3
* 最後の引数をオプションハッシュとして受け取る事を示す ':' (省略可)
#@end
* ブロックを Proc オブジェクト化して受け取ることを示す '&' (省略可)

これらの指定文字はそれぞれ省略可能ですが、
Expand All @@ -238,6 +241,8 @@ fmt のフォーマットは以下の通りです。

def some_method(a, *rest, &block)

@see [[url:http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/README.EXT.ja?view=markup]]

--- VALUE rb_singleton_class(VALUE obj)

obj に特異クラスを導入し、その特異クラスを返します。
Expand Down

0 comments on commit 6e25230

Please sign in to comment.