class Kernel

def open(path, *rest)

with reading files over XmlHttpRequest
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