Project

General

Profile

Feature #5666 » path2class.patch

header update - tenderlovemaking (Aaron Patterson), 11/24/2011 06:53 AM

View differences:

README.EXT
VALUE rb_define_class_under(VALUE outer, const char *name, VALUE super)
VALUE rb_define_module_under(VALUE outer, const char *name)
To look up a constant by a C string, use the function below:
VALUE rb_path2class(const char *path)
2.1.2 Method/singleton method definition
To define methods or singleton methods, use these functions:
README.EXT.ja
VALUE rb_define_class_under(VALUE outer, const char *name, VALUE super)
VALUE rb_define_module_under(VALUE outer, const char *name)
C の文字列で Ruby クラスを見つけたい時に、以下の関数を使って下さい。
VALUE rb_path2class(const char *path)
2.1.2 メソッド/特異メソッド定義
メソッドや特異メソッドを定義するには以下の関数を使います.
include/ruby/intern.h
void rb_set_class_path(VALUE, VALUE, const char*);
void rb_set_class_path_string(VALUE, VALUE, VALUE);
VALUE rb_path_to_class(VALUE);
VALUE rb_path2class(const char*);
void rb_name_class(VALUE, ID);
VALUE rb_class_name(VALUE);
void rb_autoload(VALUE, ID, const char*);
include/ruby/ruby.h
VALUE rb_define_module(const char*);
VALUE rb_define_class_under(VALUE, const char*, VALUE);
VALUE rb_define_module_under(VALUE, const char*);
VALUE rb_path2class(const char*);
void rb_include_module(VALUE,VALUE);
void rb_extend_object(VALUE,VALUE);
    (1-1/1)