Class: Rhinestone::HeaderFilter
- Inherits:
-
Object
- Object
- Rhinestone::HeaderFilter
- Defined in:
- lib/rhinestone/header_filter.rb
Instance Method Summary collapse
Instance Method Details
#filter(headers) ⇒ Object
5 6 7 8 9 10 11 12 13 14 |
# File 'lib/rhinestone/header_filter.rb', line 5 def filter(headers) filtered = {} important_headers.each do |name| value = headers[name] filtered[name] = value if value end filtered end |