mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
![naruse](/assets/img/avatar_default.png)
constant of the path is not defined but defined on toplevel. [ruby-core:41410] [Bug #5691] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33909 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
9 lines
184 B
C
9 lines
184 B
C
#include "ruby.h"
|
|
|
|
void
|
|
Init_path_to_class(void)
|
|
{
|
|
VALUE klass = rb_path2class("Test_PathToClass");
|
|
|
|
rb_define_singleton_method(klass, "path_to_class", rb_path_to_class, 1);
|
|
}
|