method
current
rails latest stable - Class:
ActiveSupport::Editor
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.