ruby/trema/switch.c in trema-0.3.15 vs ruby/trema/switch.c in trema-0.3.16

- old
+ new

@@ -170,16 +170,15 @@ return self; } -/******************************************************************************** - * Init Switch module. - ********************************************************************************/ - +/* + * Document-class: Trema::Switch + */ void Init_switch() { - mTrema = rb_define_module( "Trema" ); + mTrema = rb_eval_string( "Trema" ); cSwitch = rb_define_class_under( mTrema, "Switch", rb_cObject ); rb_include_module( cSwitch, mDefaultLogger ); rb_define_method( cSwitch, "run!", switch_run, 0 ); rb_define_method( cSwitch, "send_message", switch_send_message, 1 );