instance method Pathname#open

open(mode = 'r', perm = 0666) -> File[permalink][rdoc]
open(mode = 'r', perm = 0666) {|file| ... } -> object

File.open(self.to_s, *args, &block) と同じです。

[SEE_ALSO] File.open