ruby/trema/port-mod.c in trema-0.3.15 vs ruby/trema/port-mod.c in trema-0.3.16
- old
+ new
@@ -201,12 +201,15 @@
port_mod_advertise( VALUE self ) {
return rb_iv_get( self, "@advertise" );
}
+/*
+ * Document-class: Trema::PortMod
+ */
void
Init_port_mod() {
- mTrema = rb_define_module( "Trema" );
+ mTrema = rb_eval_string( "Trema" );
cPortMod = rb_define_class_under( mTrema, "PortMod", rb_cObject );
rb_define_alloc_func( cPortMod, port_mod_alloc );
rb_define_method( cPortMod, "initialize", port_mod_init, -1 );
rb_define_method( cPortMod, "transaction_id", port_mod_transaction_id, 0 );
rb_alias( cPortMod, rb_intern( "xid" ), rb_intern( "transaction_id" ) );