Sha256: f3dbbf1e1b94b9422aad4565a2ddff0e7c6d0a80580f41f3b8fe5d7fa2f57715
Contents?: true
Size: 267 Bytes
Versions: 2
Compression:
Stored size: 267 Bytes
Contents
module Rhinestone class HeaderFilter takes :important_headers def filter(headers) filtered = {} important_headers.each do |name| value = headers[name] filtered[name] = value if value end filtered end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rhinestone-0.0.2 | lib/rhinestone/header_filter.rb |
rhinestone-0.0.1 | lib/rhinestone/header_filter.rb |