キーワード
-
Check
_ Type (1) -
Init
_ stack (1) - SafeStringValue (1)
-
add
_ final (1) -
arg
_ defined (1) - assign (1)
-
avalue
_ to _ svalue (1) -
avalue
_ to _ yvalue (1) - backtrace (1)
-
bind
_ clone (1) -
block
_ pass (1) - bmcall (1)
-
boot
_ defclass (1) -
call
_ cfunc (1) -
call
_ end _ proc (1) -
call
_ final (1) -
call
_ trace _ func (1) -
catch
_ i (1) - classname (1)
- compile (1)
-
convert
_ type (1) -
copy
_ node _ scope (1) -
cv
_ i (1) -
cvar
_ cbase (1) -
cvar
_ override _ check (1) -
define
_ final (1) -
delete
_ never (1) -
dvar
_ asgn (1) -
dvar
_ asgn _ curr (1) -
dvar
_ asgn _ internal (1) -
errat
_ getter (1) -
errat
_ setter (1) -
errinfo
_ setter (1) -
ev
_ const _ defined (1) -
ev
_ const _ get (1) - eval (1)
-
eval
_ node (1) -
eval
_ under (1) -
eval
_ under _ i (1) -
exec
_ under (1) -
fc
_ i (1) -
fc
_ path (1) - finals (1)
-
find
_ class _ path (1) -
generic
_ ivar _ defined (1) -
generic
_ ivar _ get (1) -
generic
_ ivar _ remove (1) -
generic
_ ivar _ set (1) -
get
_ backtrace (1) -
givar
_ i (1) -
givar
_ mark _ i (1) -
gvar
_ i (1) -
handle
_ rescue (1) - id2ref (1)
-
include
_ class _ new (1) -
ins
_ methods _ i (1) -
ins
_ methods _ priv _ i (1) -
ins
_ methods _ prot _ i (1) -
inspect
_ i (1) -
inspect
_ obj (1) -
is
_ defined (1) -
ivar
_ i (1) -
lex
_ get _ str (1) -
lex
_ getline (1) -
list
_ i (1) -
literal
_ concat _ string (1) -
localjump
_ error (1) -
localjump
_ exitstatus (1) -
make
_ backtrace (1) -
mark
_ entry (1) -
mark
_ hashentry (1) -
mark
_ locations _ array (1) - massign (1)
-
method
_ arity (1) -
method
_ call (1) -
method
_ clone (1) -
method
_ eq (1) -
method
_ inspect (1) -
method
_ list (1) -
method
_ proc (1) -
method
_ unbind (1) - mnew (1)
-
mod
_ av _ set (1) -
module
_ setup (1) - mproc (1)
-
mvalue
_ to _ svalue (1) -
new
_ dvar (1) -
obj
_ free (1) -
original
_ module (1) -
os
_ each _ obj (1) -
os
_ live _ obj (1) -
os
_ obj _ of (1) -
pipe
_ open (1) -
print
_ undef (1) -
proc
_ arity (1) -
proc
_ binding (1) -
proc
_ call (1) -
proc
_ eq (1) -
proc
_ get _ safe _ level (1) -
proc
_ invoke (1) -
proc
_ new (1) -
proc
_ s _ new (1) -
proc
_ save _ safe _ level (1) -
proc
_ set _ safe _ level (1) -
proc
_ to _ proc (1) -
proc
_ to _ s (1) -
proc
_ yield (1) -
rb
_ Array (1) -
rb
_ Float (1) -
rb
_ Integer (1) -
rb
_ String (1) -
rb
_ add _ method (1) -
rb
_ alias (1) -
rb
_ any _ to _ s (1) -
rb
_ apply (1) -
rb
_ ary _ aref (1) -
rb
_ ary _ clear (1) -
rb
_ ary _ concat (1) -
rb
_ ary _ delete (1) -
rb
_ ary _ entry (1) -
rb
_ ary _ includes (1) -
rb
_ ary _ new (1) -
rb
_ ary _ new2 (1) -
rb
_ ary _ new3 (1) -
rb
_ ary _ pop (1) -
rb
_ ary _ push (1) -
rb
_ ary _ shift (1) -
rb
_ ary _ sort (1) -
rb
_ ary _ store (1) -
rb
_ ary _ to _ s (1) -
rb
_ ary _ unshift (1) -
rb
_ assoc _ new (1) -
rb
_ attr (1) -
rb
_ backref _ get (1) -
rb
_ backref _ set (1) -
rb
_ call (1) -
rb
_ call0 (1) -
rb
_ call _ super (1) -
rb
_ callcc (1) -
rb
_ catch (1) -
rb
_ check _ convert _ type (1) -
rb
_ class2name (1) -
rb
_ class _ allocate _ instance (1) -
rb
_ class _ boot (1) -
rb
_ class _ inherited (1) -
rb
_ class _ initialize (1) -
rb
_ class _ instance _ methods (1) -
rb
_ class _ new (1) -
rb
_ class _ new _ instance (1) -
rb
_ class _ path (1) -
rb
_ class _ private _ instance _ methods (1) -
rb
_ class _ protected _ instance _ methods (1) -
rb
_ class _ real (1) -
rb
_ class _ s _ new (1) -
rb
_ class _ superclass (1) -
rb
_ clear _ cache _ by _ class (1) -
rb
_ compile _ file (1) -
rb
_ compile _ string (1) -
rb
_ const _ assign (1) -
rb
_ const _ defined (1) -
rb
_ const _ defined _ at (1) -
rb
_ const _ get (1) -
rb
_ const _ get _ at (1) -
rb
_ const _ list (1) -
rb
_ const _ set (1) -
rb
_ cont _ call (1) -
rb
_ convert _ type (1) -
rb
_ copy _ generic _ ivar (1) -
rb
_ cv _ get (1) -
rb
_ cv _ set (1) -
rb
_ cvar _ declear (1) -
rb
_ cvar _ defined (1) -
rb
_ cvar _ get (1) -
rb
_ cvar _ set (1) -
rb
_ data _ object _ alloc (1) -
rb
_ define _ alias (1) -
rb
_ define _ attr (1) -
rb
_ define _ class (1) -
rb
_ define _ class _ id (1) -
rb
_ define _ class _ under (1) -
rb
_ define _ class _ variable (1) -
rb
_ define _ const (1) -
rb
_ define _ global _ const (1) -
rb
_ define _ global _ function (1) -
rb
_ define _ hooked _ variable (1) -
rb
_ define _ method (1) -
rb
_ define _ method _ id (1) -
rb
_ define _ module (1) -
rb
_ define _ module _ function (1) -
rb
_ define _ module _ id (1) -
rb
_ define _ module _ under (1) -
rb
_ define _ private _ method (1) -
rb
_ define _ protected _ method (1) -
rb
_ define _ readonly _ variable (1) -
rb
_ define _ singleton _ method (1) -
rb
_ define _ variable (1) -
rb
_ define _ virtual _ variable (1) -
rb
_ disable _ super (1) -
rb
_ dvar _ curr (1) -
rb
_ dvar _ defined (1) -
rb
_ dvar _ push (1) -
rb
_ dvar _ ref (1) -
rb
_ enable _ super (1) -
rb
_ ensure (1) -
rb
_ eql (1) -
rb
_ equal (1) -
rb
_ eval (1) -
rb
_ eval _ cmd (1) -
rb
_ eval _ string (1) -
rb
_ eval _ string _ protect (1) -
rb
_ eval _ string _ wrap (1) -
rb
_ exc _ fatal (1) -
rb
_ exc _ raise (1) -
rb
_ export _ method (1) -
rb
_ extend _ object (1) -
rb
_ f _ abort (1) -
rb
_ f _ array (1) -
rb
_ f _ at _ exit (1) -
rb
_ f _ autoload (1) -
rb
_ f _ binding (1) -
rb
_ f _ block _ given _ p (1) -
rb
_ f _ caller (1) -
rb
_ f _ catch (1) -
rb
_ f _ eval (1) -
rb
_ f _ exit (1) -
rb
_ f _ float (1) -
rb
_ f _ global _ variables (1) -
rb
_ f _ hash (1) -
rb
_ f _ integer (1) -
rb
_ f _ lambda (1) -
rb
_ f _ load (1) -
rb
_ f _ local _ variables (1) -
rb
_ f _ loop (1) -
rb
_ f _ missing (1) -
rb
_ f _ raise (1) -
rb
_ f _ require (1) -
rb
_ f _ send (1) -
rb
_ f _ string (1) -
rb
_ f _ throw (1) -
rb
_ f _ trace _ var (1) -
rb
_ f _ untrace _ var (1) -
rb
_ false (1) -
rb
_ fix _ new (1) -
rb
_ free _ generic _ ivar (1) -
rb
_ frozen _ class _ p (1) -
rb
_ funcall (1) -
rb
_ funcall2 (1) -
rb
_ funcall3 (1) -
rb
_ gc (1) -
rb
_ gc _ disable (1) -
rb
_ gc _ enable (1) -
rb
_ gc _ force _ recycle (1) -
rb
_ gc _ mark (1) -
rb
_ gc _ mark _ children (1) -
rb
_ gc _ mark _ locations (1) -
rb
_ gc _ mark _ maybe (1) -
rb
_ gc _ register _ address (1) -
rb
_ gc _ start (1) -
rb
_ gc _ unregister _ address (1) -
rb
_ generic _ ivar _ table (1) -
rb
_ get _ method _ body (1) -
rb
_ global _ variable (1) -
rb
_ gv _ get (1) -
rb
_ gv _ set (1) -
rb
_ gvar _ defined (1) -
rb
_ gvar _ get (1) -
rb
_ gvar _ set (1) -
rb
_ include _ module (1) -
rb
_ inspect (1) -
rb
_ int _ new (1) -
rb
_ iterate (1) -
rb
_ iv _ get (1) -
rb
_ iv _ set (1) -
rb
_ ivar _ defined (1) -
rb
_ ivar _ get (1) -
rb
_ ivar _ set (1) -
rb
_ lastline _ get (1) -
rb
_ lastline _ set (1) -
rb
_ load (1) -
rb
_ load _ protect (1) -
rb
_ longjmp (1) -
rb
_ mark _ generic _ ivar (1) -
rb
_ method _ boundp (1) -
rb
_ mod _ alias _ method (1) -
rb
_ mod _ ancestors (1) -
rb
_ mod _ append _ features (1) -
rb
_ mod _ attr (1) -
rb
_ mod _ attr _ accessor (1) -
rb
_ mod _ attr _ reader (1) -
rb
_ mod _ attr _ writer (1) -
rb
_ mod _ class _ variables (1) -
rb
_ mod _ clone (1) -
rb
_ mod _ cmp (1) -
rb
_ mod _ const _ at (1) -
rb
_ mod _ const _ defined (1) -
rb
_ mod _ const _ get (1) -
rb
_ mod _ const _ of (1) -
rb
_ mod _ const _ set (1) -
rb
_ mod _ constants (1) -
rb
_ mod _ define _ method (1) -
rb
_ mod _ dup (1) -
rb
_ mod _ eqq (1) -
rb
_ mod _ extend _ object (1) -
rb
_ mod _ ge (1) -
rb
_ mod _ gt (1) -
rb
_ mod _ include (1) -
rb
_ mod _ include _ p (1) -
rb
_ mod _ included _ modules (1) -
rb
_ mod _ initialize (1) -
rb
_ mod _ le (1) -
rb
_ mod _ lt (1) -
rb
_ mod _ method (1) -
rb
_ mod _ method _ defined (1) -
rb
_ mod _ modfunc (1) -
rb
_ mod _ module _ eval (1) -
rb
_ mod _ name (1) -
rb
_ mod _ nesting (1) -
rb
_ mod _ private (1) -
rb
_ mod _ private _ method (1) -
rb
_ mod _ protected (1) -
rb
_ mod _ public (1) -
rb
_ mod _ public _ method (1) -
rb
_ mod _ remove _ const (1) -
rb
_ mod _ remove _ cvar (1) -
rb
_ mod _ remove _ method (1) -
rb
_ mod _ s _ constants (1) -
rb
_ mod _ to _ s (1) -
rb
_ mod _ undef _ method (1) -
rb
_ module _ new (1) -
rb
_ module _ s _ alloc (1) -
rb
_ name _ class (1) -
rb
_ newobj (1) -
rb
_ num2dbl (1) -
rb
_ obj _ alloc (1) -
rb
_ obj _ call _ init (1) -
rb
_ obj _ class (1) -
rb
_ obj _ clone (1) -
rb
_ obj _ dummy (1) -
rb
_ obj _ dup (1) -
rb
_ obj _ equal (1) -
rb
_ obj _ extend (1) -
rb
_ obj _ freeze (1) -
rb
_ obj _ frozen _ p (1) -
rb
_ obj _ id (1) -
rb
_ obj _ inspect (1) -
rb
_ obj _ instance _ eval (1) -
rb
_ obj _ instance _ variables (1) -
rb
_ obj _ is _ block (1) -
rb
_ obj _ is _ instance _ of (1) -
rb
_ obj _ is _ kind _ of (1) -
rb
_ obj _ is _ proc (1) -
rb
_ obj _ method (1) -
rb
_ obj _ methods (1) -
rb
_ obj _ private _ methods (1) -
rb
_ obj _ protected _ methods (1) -
rb
_ obj _ remove _ instance _ variable (1) -
rb
_ obj _ respond _ to (1) -
rb
_ obj _ singleton _ methods (1) -
rb
_ obj _ taint (1) -
rb
_ obj _ tainted (1) -
rb
_ obj _ untaint (1) -
rb
_ p (1) -
rb
_ path2class (1) -
rb
_ proc _ new (1) -
rb
_ protect (1) -
rb
_ provide _ feature (1) -
rb
_ raise (1) -
rb
_ remove _ method (1) -
rb
_ require (1) -
rb
_ rescue (1) -
rb
_ rescue2 (1) -
rb
_ respond _ to (1) -
rb
_ scan _ args (1) -
rb
_ set _ class _ path (1) -
rb
_ set _ end _ proc (1) -
rb
_ singleton _ class (1) -
rb
_ singleton _ class _ attached (1) -
rb
_ singleton _ class _ clone (1) -
rb
_ singleton _ class _ new (1) -
rb
_ str _ cat (1) -
rb
_ str _ cat2 (1) -
rb
_ str _ concat (1) -
rb
_ str _ dup (1) -
rb
_ str _ new (1) -
rb
_ str _ new2 (1) -
rb
_ str _ new4 (1) -
rb
_ str _ substr (1) -
rb
_ str _ to _ dbl (1) -
rb
_ svar (1) -
rb
_ sym _ all _ symbols (1) -
rb
_ sym _ interned _ p (1) -
rb
_ thread _ abort _ exc (1) -
rb
_ thread _ abort _ exc _ set (1) -
rb
_ thread _ alive _ p (1) -
rb
_ thread _ alloc (1) -
rb
_ thread _ aref (1) -
rb
_ thread _ aset (1) -
rb
_ thread _ check (1) -
rb
_ thread _ create (1) -
rb
_ thread _ critical _ get (1) -
rb
_ thread _ critical _ set (1) -
rb
_ thread _ current (1) -
rb
_ thread _ exit (1) -
rb
_ thread _ initialize (1) -
rb
_ thread _ inspect (1) -
rb
_ thread _ join _ m (1) -
rb
_ thread _ key _ p (1) -
rb
_ thread _ keys (1) -
rb
_ thread _ kill (1) -
rb
_ thread _ list (1) -
rb
_ thread _ local _ aref (1) -
rb
_ thread _ local _ aset (1) -
rb
_ thread _ main (1) -
rb
_ thread _ pass (1) -
rb
_ thread _ priority (1) -
rb
_ thread _ priority _ set (1) -
rb
_ thread _ raise (1) -
rb
_ thread _ raise _ m (1) -
rb
_ thread _ run (1) -
rb
_ thread _ s _ abort _ exc (1) -
rb
_ thread _ s _ abort _ exc _ set (1) -
rb
_ thread _ s _ kill (1) -
rb
_ thread _ s _ new (1) -
rb
_ thread _ safe _ level (1) -
rb
_ thread _ start (1) -
rb
_ thread _ start _ 0 (1) -
rb
_ thread _ status (1) -
rb
_ thread _ stop (1) -
rb
_ thread _ stop _ p (1) -
rb
_ thread _ trap _ eval (1) -
rb
_ thread _ value (1) -
rb
_ thread _ wakeup (1) -
rb
_ thread _ yield (1) -
rb
_ throw (1) -
rb
_ time _ timespec _ new (1) -
rb
_ to _ id (1) -
rb
_ to _ int (1) -
rb
_ to _ integer (1) -
rb
_ trace _ eval (1) -
rb
_ trap _ eval (1) -
rb
_ true (1) -
rb
_ uint _ new (1) -
rb
_ undef (1) -
rb
_ undef _ method (1) -
rb
_ undefined (1) -
rb
_ with _ disable _ interrupt (1) -
rb
_ yield (1) -
rb
_ yield _ 0 (1) -
readonly
_ setter (1) -
remove
_ method (1) -
rm
_ final (1) -
ruby
_ stack _ length (1) -
run
_ final (1) -
run
_ single _ final (1) -
safe
_ getter (1) -
safe
_ setter (1) -
search
_ method (1) -
secure
_ visibility (1) -
set
_ backtrace (1) -
set
_ method _ visibility (1) -
set
_ trace _ func (1) -
special
_ local _ set (1) -
specific
_ eval (1) -
st
_ add _ direct (1) -
st
_ delete (1) -
st
_ delete _ safe (1) -
st
_ insert (1) -
st
_ lookup (1) - superclass (1)
-
sv
_ i (1) -
svalue
_ to _ avalue (1) -
svalue
_ to _ mvalue (1) -
sweep
_ source _ filename (1) -
symbols
_ i (1) -
thgroup
_ add (1) -
thgroup
_ list (1) -
thgroup
_ s _ alloc (1) -
thread
_ keys _ i (1) -
top
_ const _ get (1) -
top
_ include (1) -
top
_ private (1) -
top
_ public (1) -
trace
_ en (1) -
trace
_ ev (1) - umcall (1)
-
umethod
_ bind (1) -
umethod
_ call (1) -
umethod
_ proc (1) -
umethod
_ unbind (1) -
undef
_ getter (1) -
undef
_ setter (1) -
undefine
_ final (1) -
val
_ getter (1) -
val
_ marker (1) -
val
_ setter (1) -
value
_ expr (1) -
var
_ getter (1) -
var
_ marker (1) -
var
_ setter (1) -
yield
_ under (1) -
yield
_ under _ i (1)
検索結果
先頭5件
-
static int value
_ expr(NODE *node) (78304.0) -
node を評価したときに、確実に値が得られない式が あるならば警告またはエラーにする。
node を評価したときに、確実に値が得られない式が
あるならば警告またはエラーにする。 -
static VALUE avalue
_ to _ svalue(VALUE v) (37204.0) -
-
static VALUE avalue
_ to _ yvalue(VALUE v) (37204.0) -
-
static VALUE mvalue
_ to _ svalue(VALUE v) (37204.0) -
-
static VALUE svalue
_ to _ avalue(VALUE v) (37204.0) -
-
static VALUE svalue
_ to _ mvalue(VALUE v) (37204.0) -
-
static VALUE rb
_ thread _ value(VALUE thread) (18904.0) -
-
MACRO SafeStringValue(v) (18304.0)
-
StringValue と同じく、val が String でなければ to_str メソッドを 使って String に変換します。同時に rb_check_safe_str() によるチェックも 行います。
StringValue と同じく、val が String でなければ to_str メソッドを
使って String に変換します。同時に rb_check_safe_str() によるチェックも
行います。 -
VALUE rb
_ ensure(VALUE (*body)() , VALUE data1 , VALUE (*ensure)() , VALUE data2) (1504.0) -
ensure の C 版です。まず body(data1) を実行し、その途中で 例外や exit が起きたとしても ensure(data2) が確実に 実行されます ( body() が正常終了しても実行されます)。
ensure の C 版です。まず body(data1) を実行し、その途中で
例外や exit が起きたとしても ensure(data2) が確実に
実行されます ( body() が正常終了しても実行されます)。 -
VALUE rb
_ rescue(VALUE (*b _ proc)() , VALUE data1 , VALUE (*r _ proc)() , VALUE data2) (1504.0) -
まず b_proc(data1) を実行し、その途中で例外が発生したら r_proc(data2) を実行します。 捕捉する例外は StandardError のサブクラスだけです。
まず b_proc(data1) を実行し、その途中で例外が発生したら r_proc(data2) を実行します。
捕捉する例外は StandardError のサブクラスだけです。 -
VALUE rb
_ rescue2(VALUE (*b _ proc)() , VALUE data1 , VALUE (*r _ proc)() , VALUE data2 , . . . ) (1504.0) -
まず b_proc(data1) を実行し、その途中で例外が発生したら r_proc(data2) を実行します。 第五引数以降の可変長引数に捕捉したい例外クラスのリストを指定します。 引数の最後は NULL で終らなければなりません。
まず b_proc(data1) を実行し、その途中で例外が発生したら r_proc(data2) を実行します。
第五引数以降の可変長引数に捕捉したい例外クラスのリストを指定します。
引数の最後は NULL で終らなければなりません。 -
static VALUE rb
_ mod _ const _ set(VALUE mod , VALUE name , VALUE value) (1504.0) -
-
VALUE rb
_ iterate(VALUE (*call _ proc)() , VALUE date1 , VALUE (*block _ proc)() , date2) (1258.0) -
ブロック付きメソッド(イテレータ)呼び出しを行う関数です.
ブロック付きメソッド(イテレータ)呼び出しを行う関数です.
まず call_proc(data1) を実行します。そしてその関数か
その直下のメソッドで yield が発生すると以下が実行されます。
block_proc(VALUE block_arg, VALUE data2, VALUE self)
block_arg はブロック引数(複数なら配列に入っている)、
data2 は rb_iterate() に渡したもの、
self は block_proc 呼び出し時点での self です。 -
VALUE rb
_ f _ autoload(VALUE obj , VALUE klass , VALUE file) (1204.0) -
-
static VALUE call
_ cfunc(VALUE (*func)() , VALUE recv , int len , int argc , VALUE *argv) (1204.0) -
C で定義されたメソッドの起動に際し、実体の関数 func を呼び出します。
C で定義されたメソッドの起動に際し、実体の関数 func を呼び出します。 -
static VALUE eval(VALUE self
, VALUE src , VALUE scope , char *file , int line) (1204.0) -
eval の実体。文字列 src を評価します。 そのとき第三引数 scope が nil でなければ そのコンテキストの元で評価します。
eval の実体。文字列 src を評価します。
そのとき第三引数 scope が nil でなければ
そのコンテキストの元で評価します。
また src をコンパイルするとき、
ファイル file の line 行目に配置されていると仮定します。 -
static VALUE eval
_ under(VALUE under , VALUE self , VALUE src , const char *file , int line) (1204.0) -
-
static VALUE exec
_ under(VALUE (*func)() , VALUE under , VALUE cbase , void *args) (1204.0) -
-
static VALUE mnew(VALUE klass
, VALUE obj , ID id , VALUE mklass) (1204.0) -
-
static VALUE proc
_ invoke(VALUE proc , VALUE args , int pcall , VALUE self) (1204.0) -
Proc オブジェクト proc を起動します。そのとき 引数を args とし、self を self にします。
Proc オブジェクト proc を起動します。そのとき
引数を args とし、self を self にします。 -
static VALUE rb
_ call(VALUE klass , VALUE recv , ID mid , int argc , const VALUE *argv , int scope) (1204.0) -
クラス klass に定義されたメソッド mid を呼び出します。 レシーバは recv で、引数は長さ argc の配列 argv で渡します。
クラス klass に定義されたメソッド mid を呼び出します。
レシーバは recv で、引数は長さ argc の配列 argv で渡します。
scope は以下のように呼び出しの形式を示します。
: 0
obj.method() (private/protected メソッドを呼べない)
: 1
method() (private/protected メソッドも呼べる)
: 2
method_or_lvar (1とはエラーメッセージが変わる)
: 3
super -
static VALUE rb
_ call0(VALUE klass , VALUE recv , ID id , int argc , VALUE *argv , NODE *body , int nosuper) (1204.0) -
クラス klass に定義されたメソッドのコード body を起動します。 レシーバは recv で、引数は長さ argc の配列 argv で渡します。 nosuper が非ゼロのときは、この呼び出し中の super がエラーになります。
クラス klass に定義されたメソッドのコード body を起動します。
レシーバは recv で、引数は長さ argc の配列 argv で渡します。
nosuper が非ゼロのときは、この呼び出し中の super がエラーになります。 -
static VALUE rb
_ mod _ alias _ method(VALUE mod , VALUE newname , VALUE oldname) (1204.0) -
-
static VALUE rb
_ thread _ aset(VALUE thread , VALUE id , VALUE val) (1204.0) -
-
static VALUE rb
_ yield _ 0(VALUE val , VALUE self , VALUE klass , int pcall) (1204.0) -
カレントブロックに val を渡して処理を移す。 そのさい self とクラスを self と klass に切り替える。 Proc の呼び出しのときは pcall=非ゼロ にしなければならない。
カレントブロックに val を渡して処理を移す。
そのさい self とクラスを self と klass に切り替える。
Proc の呼び出しのときは pcall=非ゼロ にしなければならない。 -
static VALUE specific
_ eval(int argc , VALUE *argv , VALUE klass , VALUE self) (1204.0) -
rb_obj_instance_eval と rb_mod_module_eval を共通化するための補助関数です。
rb_obj_instance_eval と rb_mod_module_eval を共通化するための補助関数です。 -
VALUE rb
_ catch(const char *tag , VALUE (*proc)() , VALUE data) (1048.0) -
catch と同等の動作を実行します。
catch と同等の動作を実行します。
まず proc に、yield された値と data を渡して実行します。
その途中で tag が throw されたら rb_catch 全体を終了します。
throw が発生した場合はその値を返します。
throw が発生しなかったときは proc の返り値を返します。
static VALUE
foo_yield(VALUE a, VALUE b)
{
return rb_yield(b);
}
static VALUE
foo_catch(VALUE obj)
{
return rb_... -
VALUE rb
_ assoc _ new(VALUE a , VALUE b) (958.0) -
[a,b] を返します。
[a,b] を返します。
対応するRubyコード
[a, b]
使用例
VALUE assoc_string(VALUE str_a, VALUE str_b)
{
Check_Type(str_a, T_STRING);
Check_Type(str_b, T_STRING);
return rb_assoc_new(str_a, str_b);
} -
VALUE rb
_ ary _ push(VALUE ary , VALUE item) (922.0) -
配列 ary の末尾に item を追加します。
配列 ary の末尾に item を追加します。
対応するRubyコード
ary.push(item) または
ary << item
使用例
VALUE ary = rb_ary_new();
char line[4096];
while ((gets(line)) != NULL){
item = process_apache_log(line);
rb_ary_push(ary, item);
} -
VALUE rb
_ funcall2(VALUE recv , ID name , int nargs , VALUE *args) (922.0) -
recv に対してメソッド name を呼びだし、 メソッドの返り値を返します。プライベートメソッドも 呼びだせます。
recv に対してメソッド name を呼びだし、
メソッドの返り値を返します。プライベートメソッドも
呼びだせます。
メソッドへの引数は VALUE の配列として第四引数にあたえ、
その長さを nargs に指定します。 -
VALUE rb
_ funcall3(VALUE recv , ID mid , int argc , const VALUE *argv) (922.0) -
recv に対してメソッド name を呼びだし、 メソッドの返り値を返します。
recv に対してメソッド name を呼びだし、
メソッドの返り値を返します。
メソッドへの引数は VALUE の配列として第四引数にあたえ、
その長さを nargs に指定します。
rb_funcall2 との違いは、プライベートメソッドを呼び出せないことです。 -
VALUE rb
_ apply(VALUE recv , ID mid , VALUE args) (904.0) -
オブジェクト recv のメソッド mid を 引数 args とともに呼び出します。
オブジェクト recv のメソッド mid を
引数 args とともに呼び出します。 -
VALUE rb
_ ary _ aref(int argc , VALUE *argv , VALUE ary) (904.0) -
argc が 1 のときは ary[*argv]、 2 のときは ary[argv[0], argv[1]] を返します。
argc が 1 のときは ary[*argv]、
2 のときは ary[argv[0], argv[1]] を返します。 -
VALUE rb
_ ary _ concat(VALUE ary , VALUE x) (904.0) -
ary.concat x
ary.concat x -
VALUE rb
_ ary _ delete(VALUE ary , VALUE item) (904.0) -
ary.delete
ary.delete -
VALUE rb
_ ary _ unshift(VALUE ary , VALUE item) (904.0) -
配列 ary の先頭に item を挿入します。
配列 ary の先頭に item を挿入します。 -
VALUE rb
_ class _ inherited(VALUE super , VALUE klass) (904.0) -
クラス super の下位クラス klass が作成されたことを 受けて、super に対し inherited メソッドを呼び出します。
クラス super の下位クラス klass が作成されたことを
受けて、super に対し inherited メソッドを呼び出します。 -
VALUE rb
_ class _ instance _ methods(int argc , VALUE *argv , VALUE mod) (904.0) -
Module#instance_methods の実体。 モジュール mod に定義されている public メソッド名の リストを文字列の配列で返します。
Module#instance_methods の実体。
モジュール mod に定義されている public メソッド名の
リストを文字列の配列で返します。 -
VALUE rb
_ class _ new _ instance(int argc , VALUE *argv , VALUE klass) (904.0) -
Class#new の実体です。
Class#new の実体です。 -
VALUE rb
_ class _ private _ instance _ methods(int argc , VALUE *argv , VALUE mod) (904.0) -
Module#private_instance_methods の実体。 モジュール mod に定義されている private メソッド名の リストを文字列の配列で返します。
Module#private_instance_methods の実体。
モジュール mod に定義されている private メソッド名の
リストを文字列の配列で返します。 -
VALUE rb
_ class _ protected _ instance _ methods(int argc , VALUE *argv , VALUE mod) (904.0) -
Module#protected_instance_methods の実体。 モジュール mod に定義されている protected メソッド名の リストを文字列の配列で返します。
Module#protected_instance_methods の実体。
モジュール mod に定義されている protected メソッド名の
リストを文字列の配列で返します。 -
VALUE rb
_ define _ class _ under(VALUE outer , const char *name , VALUE super) (904.0) -
super のサブクラスとして新しい Ruby クラスを、outer の定数として定義し て返します。
super のサブクラスとして新しい Ruby クラスを、outer の定数として定義し
て返します。
@param outer 定義するクラスが定数として所属するクラス
@param name クラス名
@param super 継承元のクラス。NULL を指定した場合は Object クラス
@raise TypeError 引数 name と同じ名前の定数が既に存在し、それが
Class オブジェクトではない場合に発生します。
@raise TypeError 定義済みのクラスと継承元のクラスが一致しない場合に発生
... -
VALUE rb
_ eql(VALUE obj1 , VALUE obj2) (904.0) -
obj1.equal?(obj2) ならば Qtrue、 そうでないならば Qfalse。
obj1.equal?(obj2) ならば Qtrue、
そうでないならば Qfalse。 -
VALUE rb
_ equal(VALUE obj1 , VALUE obj2) (904.0) -
obj1 == obj2 ならば Qtrue、 そうでないならば Qfalse。
obj1 == obj2 ならば Qtrue、
そうでないならば Qfalse。 -
VALUE rb
_ eval _ cmd(VALUE cmd , VALUE arg , int tcheck) (904.0) -
-
VALUE rb
_ f _ require(VALUE obj , VALUE fname) (904.0) -
require の実体。 self == obj として fname を require します。
require の実体。
self == obj として fname を require します。 -
VALUE rb
_ iv _ set(VALUE obj , char *name , VALUE val) (904.0) -
オブジェクト obj のインスタンス変数 name に val を代入します。
オブジェクト obj のインスタンス変数 name に
val を代入します。 -
VALUE rb
_ ivar _ set(VALUE obj , ID name , VALUE val) (904.0) -
オブジェクト obj のインスタンス変数 name に val を代入します。
オブジェクト obj のインスタンス変数 name に
val を代入します。 -
VALUE rb
_ make _ metaclass(VALUE obj , VALUE klass) (904.0) -
クラス klass のインスタンス obj に特異クラスを導入し 特異クラスと obj を結びつけます。
クラス klass のインスタンス obj に特異クラスを導入し
特異クラスと obj を結びつけます。 -
VALUE rb
_ mod _ include _ p(VALUE mod , VALUE mod2) (904.0) -
モジュール mod が mod2 をインクルードしていれば真。
モジュール mod が mod2 をインクルードしていれば真。 -
VALUE rb
_ mod _ module _ eval(int argc , VALUE *argv , VALUE mod) (904.0) -
Module#module_eval の実体です。
Module#module_eval の実体です。 -
VALUE rb
_ mod _ remove _ const(VALUE mod , VALUE name) (904.0) -
-
VALUE rb
_ mod _ remove _ cvar(VALUE mod , VALUE name) (904.0) -
-
VALUE rb
_ obj _ instance _ eval(int argc , VALUE *argv , VALUE self) (904.0) -
-
VALUE rb
_ obj _ is _ instance _ of(VALUE obj , VALUE klass) (904.0) -
obj がクラス klass のインスタンスならば真。
obj がクラス klass のインスタンスならば真。 -
VALUE rb
_ obj _ is _ kind _ of(VALUE obj , VALUE klass) (904.0) -
obj がクラス klass およびそのサブクラスの インスタンスのとき真。
obj がクラス klass およびそのサブクラスの
インスタンスのとき真。 -
VALUE rb
_ obj _ remove _ instance _ variable(VALUE obj , VALUE name) (904.0) -
-
VALUE rb
_ obj _ singleton _ methods(int argc , VALUE *argv , VALUE obj) (904.0) -
Object#singleton_methods の実体。 オブジェクト obj に定義されている特異メソッド名のリストを 文字列の配列で返す。
Object#singleton_methods の実体。
オブジェクト obj に定義されている特異メソッド名のリストを
文字列の配列で返す。 -
VALUE rb
_ protect(VALUE (*proc)() , VALUE data , int *state) (904.0) -
初出: 4064
初出: 4064
proc(data) を評価中のあらゆる大域脱出(例外を含む)を捕捉します。
val = rb_protect(func, arg, &status);
if (status != 0) {
puts("大域脱出が起きた");
rb_jump_tag(status);
} -
VALUE rb
_ str _ concat(VALUE s1 , VALUE s2) (904.0) -
equivalent to "s1.concat s2"
equivalent to "s1.concat s2" -
VALUE rb
_ thread _ local _ aset(VALUE thread , ID id , VALUE val) (904.0) -
-
static VALUE add
_ final(VALUE os , VALUE proc) (904.0) -
-
static VALUE bmcall(VALUE args
, VALUE method) (904.0) -
-
static VALUE call
_ final(VALUE os , VALUE obj) (904.0) -
-
static VALUE define
_ final(int argc , VALUE *argv , VALUE os) (904.0) -
-
static VALUE id2ref(VALUE obj
, VALUE id) (904.0) -
ObjectSpace#_id2ref の実体。 Ruby の整数で表されたオブジェクト ID id から オブジェクトを返します。
ObjectSpace#_id2ref の実体。
Ruby の整数で表されたオブジェクト ID id から
オブジェクトを返します。 -
static VALUE include
_ class _ new(VALUE module , VALUE super) (904.0) -
super をスーパークラスとして モジュールの「化身」クラスを作成し返します。
super をスーパークラスとして
モジュールの「化身」クラスを作成し返します。 -
static VALUE inspect
_ obj(VALUE obj , VALUE str) (904.0) -
-
static VALUE massign(VALUE self
, NODE *node , VALUE val , int pcall) (904.0) -
-
static VALUE method
_ call(int argc , VALUE *argv , VALUE method) (904.0) -
-
static VALUE method
_ eq(VALUE method , VALUE other) (904.0) -
-
static VALUE proc
_ call(VALUE proc , VALUE args) (904.0) -
-
static VALUE proc
_ eq(VALUE self , VALUE other) (904.0) -
-
static VALUE proc
_ s _ new(int argc , VALUE *argv , VALUE klass) (904.0) -
Proc.new の実体。
Proc.new の実体。 -
static VALUE proc
_ to _ s(VALUE self , VALUE other) (904.0) -
-
static VALUE proc
_ yield(VALUE proc , VALUE args) (904.0) -
Proc.yield の実体。
Proc.yield の実体。 -
static VALUE rb
_ class _ initialize(int argc , VALUE *argv , VALUE klass) (904.0) -
Class#initialize の実体です。
Class#initialize の実体です。 -
static VALUE rb
_ cont _ call(int argc , VALUE *argv , VALUE cont) (904.0) -
Continuation#call の実体。
Continuation#call の実体。 -
static VALUE rb
_ f _ array(VALUE obj , VALUE arg) (904.0) -
Kernel.#Array の実体です。
Kernel.#Array の実体です。 -
static VALUE rb
_ f _ catch(VALUE dmy , VALUE tag) (904.0) -
-
static VALUE rb
_ f _ eval(int argc , VALUE *argv , VALUE self) (904.0) -
-
static VALUE rb
_ f _ exit(int argc , VALUE *argv , VALUE obj) (904.0) -
-
static VALUE rb
_ f _ float(VALUE obj , VALUE arg) (904.0) -
Kernel.#Float の実体です。
Kernel.#Float の実体です。 -
static VALUE rb
_ f _ hash(VALUE obj , VALUE arg) (904.0) -
Kernel.#Hash の実体です。
Kernel.#Hash の実体です。 -
static VALUE rb
_ f _ integer(VALUE obj , VALUE arg) (904.0) -
Kernel.#Integer の実体です。
Kernel.#Integer の実体です。 -
static VALUE rb
_ f _ missing(int argc , VALUE *argv , VALUE obj) (904.0) -
-
static VALUE rb
_ f _ send(int argc , VALUE *argv , VALUE recv) (904.0) -
-
static VALUE rb
_ f _ string(VALUE obj , VALUE arg) (904.0) -
Kernel.#String の実体です。
Kernel.#String の実体です。 -
static VALUE rb
_ mod _ append _ features(VALUE module , VALUE include) (904.0) -
-
static VALUE rb
_ mod _ attr(int argc , VALUE *argv , VALUE klass) (904.0) -
-
static VALUE rb
_ mod _ attr _ accessor(int argc , VALUE *argv , VALUE klass) (904.0) -
-
static VALUE rb
_ mod _ attr _ reader(int argc , VALUE *argv , VALUE klass) (904.0) -
-
static VALUE rb
_ mod _ attr _ writer(int argc , VALUE *argv , VALUE klass) (904.0) -
-
static VALUE rb
_ mod _ cmp(VALUE mod , VALUE arg) (904.0) -
-
static VALUE rb
_ mod _ const _ defined(VALUE mod , VALUE name) (904.0) -
-
static VALUE rb
_ mod _ const _ get(VALUE mod , VALUE name) (904.0) -
-
static VALUE rb
_ mod _ define _ method(int argc , VALUE *argv , VALUE mod) (904.0) -
-
static VALUE rb
_ mod _ eqq(VALUE mod , VALUE arg) (904.0) -
-
static VALUE rb
_ mod _ extend _ object(VALUE mod , VALUE obj) (904.0) -
-
static VALUE rb
_ mod _ ge(VALUE mod , VALUE arg) (904.0) -