/*
* 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)
vcedit_state_unref (o->state);
o->state = NULL;
- return self;
+ return Qnil;
}
/*
end
def test_close2
+ t = Ogg::Vorbis::Tagger.new(OGG_FILE)
+ t.close
+
assert_raise(Ogg::Vorbis::Tagger::ClosedStreamError) do
- Ogg::Vorbis::Tagger.new(OGG_FILE).close.close
+ t.close
end
assert_raise(Ogg::Vorbis::Tagger::ClosedStreamError) do