public static object Close(RubyContext /*!*/ context, object self) { //TODO: See http://redmine.ruby-lang.org/issues/show/1633 // this should raise an error if called twice on an object, currently // it will just advance the stream which actually matches 1.8.6 behavior // but matz has said current 1.8.6 behavior is a bug. RubyIOOps.Close(context.InputProvider.GetOrResetCurrentStream()); return(self); }