1
0
Fork 0
mirror of https://github.com/puma/puma.git synced 2022-11-09 13:48:40 -05:00

Add 'fetch' to options. Fixes #913

This commit is contained in:
Evan Phoenix 2016-03-05 16:14:54 -08:00
parent e344c76572
commit 495e0d776f

View file

@ -44,6 +44,12 @@ module Puma
end
end
def fetch(key, default=nil)
val = self[key]
return val if val
default
end
attr_reader :cur
def all_of(key)