code: public static RubyIO open(String path, String mode) {
      RubyIO io = null;
      try {
        io = new RubyIO(new File(path), Mode.fromString(mode));
      } catch (IOException e) {
        logger.log(Level.SEVERE, null, e);
        throw new RuntimeException(e);
      }
      return io;
    }
docs: Creates a {@link RubyIO} by given path and mode.
  
  @param path
  of a File
  @param mode
  r, rw, w, w+, a, a+
  @see Mode
  @return {@link RubyIO}