class Plum::Rack::Config

Constants

DEFAULT_CONFIG

Public Class Methods

new(config = {}) click to toggle source
# File lib/plum/rack/config.rb, line 12
def initialize(config = {})
  @config = DEFAULT_CONFIG.merge(config)
end

Public Instance Methods

[](key) click to toggle source
# File lib/plum/rack/config.rb, line 16
def [](key)
  @config[key]
end
[]=(key, value) click to toggle source
# File lib/plum/rack/config.rb, line 20
def []=(key, value)
  @config[key] = value
end
to_s() click to toggle source
# File lib/plum/rack/config.rb, line 24
def to_s
  @config.to_s
end