public static void CloseWriter(RubyIO/*!*/ self) { if (self.Closed) { throw RubyExceptions.CreateIOError("closed stream"); } self.CloseWriter(); }