instance method keys

Ruby on Rails edge

Since edge

Signature

keys()

Returns an array of symbolized keys from the environment variables.

Examples:

ENV["DB_HOST"] = "localhost"
ENV["DATABASE_PORT"] = "5432"

env_config = ActiveSupport::EnvConfiguration.new
env_config.keys
# => [:db_host, :database_port, ...]
Source
# File activesupport/lib/active_support/env_configuration.rb, line 91
    def keys
      @envs.keys.map { |k| k.downcase.to_sym }
    end

Defined in activesupport/lib/active_support/env_configuration.rb line 91 · View on GitHub · Improve this page · Find usages on GitHub

Defined in ActiveSupport::EnvConfiguration

Type at least 2 characters to search.

Use the arrow keys to navigate results, Enter to open one, Escape to close.

Keyboard shortcuts

/
Focus search
⌘K / Ctrl-K
Command palette
?
This help
Esc
Close