Method: Rack::Headers#select

Defined in:
lib/rack/headers.rb

#select(&block) ⇒ Object



172
173
174
175
176
# File 'lib/rack/headers.rb', line 172

def select(&block)
  hash = dup
  hash.select!(&block)
  hash
end