diff options
author | Kazuki Yamaguchi <k@rhe.jp> | 2015-10-25 22:56:27 +0900 |
---|---|---|
committer | Kazuki Yamaguchi <k@rhe.jp> | 2015-10-25 22:56:27 +0900 |
commit | 3749da0e8cc99f476c224d09c0e3dda7b314f8a8 (patch) | |
tree | 0bb8526942340d3b82f7301d6908d4da815ca916 /lib/plum/rack/config.rb | |
parent | f36b4f1a611856bd06ff1712e5c664c12d594f9a (diff) | |
download | plum-3749da0e8cc99f476c224d09c0e3dda7b314f8a8.tar.gz |
add cli
Diffstat (limited to 'lib/plum/rack/config.rb')
-rw-r--r-- | lib/plum/rack/config.rb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/plum/rack/config.rb b/lib/plum/rack/config.rb index 2f04886..0ab04c5 100644 --- a/lib/plum/rack/config.rb +++ b/lib/plum/rack/config.rb @@ -8,7 +8,7 @@ module Plum server_push: true }.freeze - def initialize(config) + def initialize(config = {}) @config = DEFAULT_CONFIG.merge(config) end @@ -16,6 +16,10 @@ module Plum @config[key] end + def []=(key, value) + @config[key] = value + end + def to_s @config.to_s end |