ruby: this should be a list of modes, not hooks

  recommended by ddoherty03