Class: Hash
- Inherits:
-
Object
- Object
- Hash
- Defined in:
- lib/s3_authenticator.rb,
lib/s3_authenticator_dev.rb
Instance Method Summary collapse
Instance Method Details
#downcase_keys ⇒ Object
12 13 14 15 16 17 18 19 |
# File 'lib/s3_authenticator.rb', line 12 def downcase_keys res = {} each do |key, value| key = key.downcase if key.respond_to?(:downcase) res[key] = value end res end |
#join_values(separator = ',') ⇒ Object
21 22 23 24 25 26 27 |
# File 'lib/s3_authenticator.rb', line 21 def join_values(separator = ',') res = {} each do |key, value| res[key] = value.respond_to?(:join) ? value.join(separator) : value end res end |