aboutsummaryrefslogtreecommitdiffstats
path: root/lib/plum/rack/config.rb
diff options
context:
space:
mode:
authorKazuki Yamaguchi <k@rhe.jp>2015-10-25 22:56:27 +0900
committerKazuki Yamaguchi <k@rhe.jp>2015-10-25 22:56:27 +0900
commit3749da0e8cc99f476c224d09c0e3dda7b314f8a8 (patch)
tree0bb8526942340d3b82f7301d6908d4da815ca916 /lib/plum/rack/config.rb
parentf36b4f1a611856bd06ff1712e5c664c12d594f9a (diff)
downloadplum-3749da0e8cc99f476c224d09c0e3dda7b314f8a8.tar.gz
add cli
Diffstat (limited to 'lib/plum/rack/config.rb')
-rw-r--r--lib/plum/rack/config.rb6
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