Sha256: 6b92c7595d977645b1550df594f33ea6b2af40ba241a2a0491d3f235a29a9295
Contents?: true
Size: 410 Bytes
Versions: 1
Compression:
Stored size: 410 Bytes
Contents
module Plug module Configuration AUTH_USER = '' AUTH_PASSWORD = '' ALLOW_DELETE = true VALID_OPTIONS_KEYS = [ :auth_user, :auth_password, :allow_delete ].freeze attr_accessor *VALID_OPTIONS_KEYS def configure yield self end def options Hash[ * VALID_OPTIONS_KEYS.map { |key| [key, send(key)] }.flatten ] end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
plug-0.1.9 | lib/plug/configuration.rb |