Method: CacheRules#unnormalize_fields
- Defined in:
- lib/formatting.rb
#unnormalize_fields ⇒ Object
Returns a Hash of Strings
56 57 58 59 60 61 62 |
# File 'lib/formatting.rb', line 56 def unnormalize_fields ->(headers) { Array(headers).reduce({}) {|hash, (key, value)| hash.merge Hash[[format_field.call(key, value, true)]] } } end |