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