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:
parent
e344c76572
commit
495e0d776f
1 changed files with 6 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue