class Kernel
def open(path, *rest)
basic implementation of open, enough to work
def open(path, *rest) file = File.new(path, *rest) if block_given? yield file else file end end
def open(path, *rest) file = File.new(path, *rest) if block_given? yield file else file end end