Method: Path#open

Defined in:
lib/path/io.rb

#open(*args) {|file| ... } ⇒ Object

Opens the file for reading or writing. See File.open.

Yield Parameters:

  • file (File)


6
7
8
# File 'lib/path/io.rb', line 6

def open(*args, &block)
  File.open(@path, *args, &block)
end