IO.open(fd, mode="r" [, opt]) â io
IO.open(fd, mode="r" [, opt]) { |io| block } â obj
IO.open(fd, mode="r" [, opt]) { |io| block } â obj
Class Public methods
With no associated block, IO.open
is a synonym for ::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, ::open
returns the value of the block.
See ::new for a description of the
fd
, mode
and opt
parameters.
Please login to continue.