X-Git-Url: http://git.code-monkey.de/?a=blobdiff_plain;f=ext%2Fext.c;h=957dc41260c77473fb548d18670f5388f1883890;hb=5520025d1eba64b292866dfb0dfaebf0bfe6d8db;hp=6a45359772e325ff0ca6c75f8a265917cb77df76;hpb=2f95f6bbefc52f171610f8a4c49157907ced3e14;p=ruby-vorbistagger.git diff --git a/ext/ext.c b/ext/ext.c index 6a45359..957dc41 100644 --- a/ext/ext.c +++ b/ext/ext.c @@ -142,9 +142,11 @@ c_init (VALUE self, VALUE filename) /* * call-seq: - * object.close -> object + * object.close -> nil * - * Closes *object* and returns it. + * Closes *object*. Further method calls on *object* will raise an + * Ogg::Vorbis::Tagger::ClosedStreamError exception. + * Returns +nil+. */ static VALUE c_close (VALUE self) @@ -158,7 +160,7 @@ c_close (VALUE self) vcedit_state_unref (o->state); o->state = NULL; - return self; + return Qnil; } /* @@ -190,7 +192,7 @@ c_write (VALUE self) break; } - return rb_funcall (o->comments, id_length, 0); + return rb_funcall2 (o->comments, id_length, 0, NULL); } /*