Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
function rb_define_protected_method (Ruby 2.2.0)
[go: Go Back, main page]

Ruby 2.2.0 リファレンスマニュアル > 関数一覧 > rb_define_protected_method

function rb_define_protected_method

void rb_define_protected_method(VALUE klass, const char *name, VALUE (*func)(), int argc)

クラス klass に protected インスタンスメソッド name を 定義します。その実体は関数 func であり、その関数がとる 引数のタイプを argc で指定します。argc のフォーマットに ついては rb_define_method の項を参照してください。