open

IO.open(fd, mode="r" [, opt]) â io
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.

doc_ruby_on_rails
2025-01-10 15:47:30
Comments
Leave a Comment

Please login to continue.