method

current

current()
public

Returns the current editor pattern if it is known. First check for the `RAILS_EDITOR` environment variable, and if it’s missing, check for the `EDITOR` environment variable.