Ruby 1.9.3p327(2012-11-10revision37606)
ext/-test-/string/enc_associate.c
Go to the documentation of this file.
00001 #include "ruby.h"
00002 #include "ruby/encoding.h"
00003 
00004 VALUE
00005 bug_str_enc_associate(VALUE str, VALUE enc)
00006 {
00007     return rb_enc_associate(str, rb_to_encoding(enc));
00008 }
00009 
00010 void
00011 Init_enc_associate(VALUE klass)
00012 {
00013     rb_define_method(klass, "associate_encoding!", bug_str_enc_associate, 1);
00014 }
00015