• Main Page
  • Modules
  • Data Structures
  • Files
  • File List
  • Globals

ext/-test-/string/init.c

Go to the documentation of this file.
00001 #include "ruby.h"
00002 
00003 #define init(n) {void Init_##n(VALUE klass); Init_##n(klass);}
00004 
00005 VALUE
00006 bug_str_modify(VALUE str)
00007 {
00008     rb_str_modify(str);
00009     return str;
00010 }
00011 
00012 void
00013 Init_string(void)
00014 {
00015     VALUE mBug = rb_define_module("Bug");
00016     VALUE klass = rb_define_class_under(mBug, "String", rb_cString);
00017     rb_define_method(klass, "modify!", bug_str_modify, 0);
00018     TEST_INIT_FUNCS(init);
00019 }
00020 

Generated on Sat Jul 7 2012 15:29:04 for Ruby by  doxygen 1.7.1