121 results found for "Open"
open
(OpenURI::OpenRead)
OpenURI::OpenRead#open provides `open’ for URI::HTTP and URI::FTP . OpenURI::OpenRead#open takes optional 3 arguments as: OpenURI::OpenRead#open([mode [, perm]] [, options]) [{|io| … }] `mode’, `perm’ is same as Kernel#open . However, `mode’ must be read mode because OpenURI::OpenRead#open doesn’
open
(Kernel)
makes possible to open various resources including URIs. If the first argument respond to `open’ method, the method is called with the rest arguments. If the first argument is a string which begins with xxx://, it is parsed by URI.parse . If the parsed object respond to `open’ method
open
(Kernel)
Creates an IO object connected to the given stream, file, or subprocess. If path does not start with a pipe character (`` | ’’), treat it as the name of a file to open using the specified mode (defaulting to `` r'') . (See the table of valid modes on page 331.) If
accept
(Socket)
Accepts an incoming connection returning an array containing a new Socket object and a string holding the struct sockaddr information about the caller. Example Unix-based Exceptions On unix-based based systems the following system exceptions may be raised if the call to accept fails: Errno::EAGAIN - O_NONBLOCK is
open_server
(DRb::DRbProtocol)
Open a server listening for connections at uri with configuration config . The DRbProtocol module asks each registered protocol in turn to try to open a server at the URI . Each protocol signals that it does not handle that URI by raising a DRbBadScheme error. If no protocol recognises the URI
DRb::DRbProtocol
Module managing the underlying network protocol(s) used by drb. By default, drb uses the DRbTCPSocket protocol. Other protocols can be defined. A protocol must define the following class methods: All of these methods should raise a DRbBadScheme error if the URI does not identify the protocol they support (e.g
open
(DRb::DRbProtocol)
Open a client connection to uri with the configuration config . The DRbProtocol module asks each registered protocol in turn to try to open the URI . Each protocol signals that it does not handle that URI by raising a DRbBadScheme error. If no protocol recognises the URI, then a DRbBadURI error
open_message_stream
(Net::SMTP)
Opens a message writer stream and gives it to the block. The stream is valid only in the block, and has these methods: puts(str = ’’):outputs STR and CR LF. print(str):outputs STR. printf(fmt, *args):outputs sprintf(fmt,*args). write(str):outputs STR and returns the
NKF
NKF - Ruby extension for Network Kanji Filter Description This is a Ruby Extension version of nkf (Netowrk Kanji Filter). It converts the first argument and return converted result. Conversion details are specified by flags as the first argument. Nkf is a yet another kanji code converter among networks, hosts and
open
(IO)
With no associated block, open is a synonym for IO::new . If the optional code block is given, it will be passed io as an argument, and the IO object will automatically be closed when the block terminates. In this instance, IO::open returns the value of the block.
open
(Dir)
With no block, open is a synonym for Dir::new . If a block is present, it is passed aDir as a parameter. The directory is closed at the end of the block, and Dir::open returns the value of the block.
group
(PrettyPrint)
Groups line break hints added in the block. The line break hints are all to be used or not. If indent is specified, the method call is regarded as nested by nest(indent) { … }. If open_obj is specified, text open_obj, open_width is called before grouping. If close
open
(Tempfile)
If no block is given, this is a synonym for new(). If a block is given, it will be passed tempfile as an argument, and the tempfile will automatically be closed when the block terminates. In this case, open() returns nil.
open
(Zlib::GzipReader)
Opens a file specified by filename as a gzipped file, and returns a GzipReader object associated with that file. Further details of this method are in Zlib::GzipReader.new and ZLib::GzipReader.wrap.
open
(Zlib::GzipWriter)
Opens a file specified by filename for writing gzip compressed data, and returns a GzipWriter object associated with that file. Further details of this method are found in Zlib::GzipWriter.new and Zlib::GzipWriter#wrap.
chdir
(Dir)
Changes the current working directory of the process to the given string. When called without an argument, changes the directory to the value of the environment variable HOME, or LOGDIR . SystemCallError (probably Errno::ENOENT) if the target directory does not exist. If a block is given, it is passed the
start
(Net::SMTP)
Creates a new Net::SMTP object and connects to the server. This method is equivalent to: Block Usage If called with a block, the newly-opened Net::SMTP object is yielded to the block, and automatically closed when the block finishes. If called without a block, the newly-opened Net
Net::SMTP
Net::SMTP What is This Library? This library provides functionality to send internet mail via SMTP, the Simple Mail Transfer Protocol . For details of SMTP itself, see [RFC2821] ( http://www.ietf.org/rfc/rfc2821.txt). What is This Library NOT? This library does NOT provide functions to compose internet mails. You must create them
open_server
(DRb::DRbTCPSocket)
Open a server listening for connections at uri using configuration config .
new
(File)
Opens the file named by filename according to mode (default is ``r’’) and returns a new File object. See the description of class IO for a description of mode . The file mode may optionally be specified as a Fixnum by or-ing together the flags (O_RDONLY etc
new
(Net::Telnet)
Creates a new Net::Telnet object. Attempts to connect to the host (unless the Proxy option is provided: see below). If a block is provided, it is yielded status messages on the attempt to connect to the server, of the form: The options have the following meanings: Host:the hostname
open
(StringIO)
Equivalent to StringIO.new except that when it is called with a block, it yields with the new instance and closes it, and returns the result which returned from the block.
IO
Class IO is the basis for all input and output in Ruby. An I/O stream may be duplexed (that is, bidirectional), and so may use more than one native operating system stream. Many of the examples in this section use class File, the only standard subclass of IO . The two


