TryInvokeOpenBlock() static private method

static private TryInvokeOpenBlock ( RubyContext context, BlockParam block, IDisposable io ) : object
context RubyContext
block IronRuby.Runtime.BlockParam
io IDisposable
return object
Esempio n. 1
0
        public static object Open(BlockParam /*!*/ block, RubyClass /*!*/ self, MutableString /*!*/ path, MutableString /*!*/ mode, int permissions)
        {
            RubyIO io = RubyIOOps._CreateIOSharedSite7.Target(RubyIOOps._CreateIOSharedSite7, self.Context, self, path, mode, permissions);

            return(RubyIOOps.TryInvokeOpenBlock(self.Context, block, io));
        }
Esempio n. 2
0
        public static object Open(BlockParam /*!*/ block, RubyClass /*!*/ self, [NotNull] MutableString /*!*/ path, int fileMode)
        {
            RubyIO io = RubyIOOps._CreateIOSharedSite4.Target(RubyIOOps._CreateIOSharedSite4, self.Context, self, path, fileMode);

            return(RubyIOOps.TryInvokeOpenBlock(self.Context, block, io));
        }
Esempio n. 3
0
        public static object Open(BlockParam /*!*/ block, RubyClass /*!*/ self, object path, int fileMode, int permissions)
        {
            RubyIO io = RubyIOOps._CreateIOSharedSite5.Target(RubyIOOps._CreateIOSharedSite5, self.Context, self, Protocols.CastToString(self.Context, path), fileMode, permissions);

            return(RubyIOOps.TryInvokeOpenBlock(self.Context, block, io));
        }
Esempio n. 4
0
        public static object Open(BlockParam /*!*/ block, RubyClass /*!*/ self, object path)
        {
            RubyIO io = RubyIOOps._CreateIOSharedSite3.Target(RubyIOOps._CreateIOSharedSite3, self.Context, self, Protocols.CastToString(self.Context, path));

            return(RubyIOOps.TryInvokeOpenBlock(self.Context, block, io));
        }