public void RequireInitialized() { if (!Closed && _stream == null) { throw RubyExceptions.CreateIOError("uninitialized stream"); } }