move Sigar to top-level like the Perl binding

This commit is contained in:
Doug MacEachern 2007-09-03 01:14:49 +00:00
parent 8e156f28bd
commit 4366e095d8
1 changed files with 1 additions and 2 deletions

View File

@ -115,8 +115,7 @@ static VALUE rb_sigar_net_route(VALUE obj)
void Init_rbsigar(void) void Init_rbsigar(void)
{ {
VALUE module = rb_define_module("Hyperic"); VALUE rclass = rb_define_class("Sigar", rb_cObject);
VALUE rclass = rb_define_class_under(module, "Sigar", rb_cObject);
rb_define_method(rclass, "file_system_list", rb_sigar_file_system_list, 0); rb_define_method(rclass, "file_system_list", rb_sigar_file_system_list, 0);