Module: Plug::Configuration

Included in:
Plug
Defined in:
lib/plug/configuration.rb

Constant Summary collapse

AUTH_USER =
''
AUTH_PASSWORD =
''
ALLOW_DELETE =
true
VALID_OPTIONS_KEYS =
[
  :auth_user,
  :auth_password,
  :allow_delete,
  :buttons,
  :api_path,
  :themes
].freeze

Instance Method Summary collapse

Instance Method Details

#configure {|_self| ... } ⇒ Object

Yields:

  • (_self)

Yield Parameters:



18
19
20
# File 'lib/plug/configuration.rb', line 18

def configure
  yield self
end

#optionsObject



22
23
24
# File 'lib/plug/configuration.rb', line 22

def options
  Hash[ * VALID_OPTIONS_KEYS.map { |key| [key, send(key)] }.flatten ]
end