From: Adam Bozanich Date: 2007-06-29T13:57:40+09:00 Subject: RUBY_LIB, RUBY_ARCHLIB unavailable? ------=_Part_44663_17571642.1183093060887 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Hello, Is there a reason why the following constants aren't defined for the ruby runtime? Is there another way to access them that I'm not finding? Thanks, -Adam Index: version.c =================================================================== --- version.c (revision 12654) +++ version.c (working copy) @@ -30,6 +30,13 @@ rb_define_global_const("RUBY_RELEASE_DATE", d); rb_define_global_const("RUBY_PLATFORM", p); rb_define_global_const("RUBY_PATCHLEVEL", INT2FIX(RUBY_PATCHLEVEL)); + + rb_define_global_const("RUBY_LIB",rb_obj_freeze(rb_str_new2(RUBY_LIB))); + rb_define_global_const("RUBY_SITE_LIB",rb_obj_freeze(rb_str_new2(RUBY_SITE_LIB))); + rb_define_global_const("RUBY_SITE_LIB2",rb_obj_freeze(rb_str_new2(RUBY_SITE_LIB2))); + rb_define_global_const("RUBY_ARCHLIB",rb_obj_freeze(rb_str_new2(RUBY_ARCHLIB))); + rb_define_global_const("RUBY_SITE_ARCHLIB",rb_obj_freeze(rb_str_new2(RUBY_SITE_ARCHLIB))); + } void ------=_Part_44663_17571642.1183093060887--