Class: Array

Inherits:
Object show all
Defined in:
lib/hash_digest.rb

Instance Method Summary collapse

Instance Method Details

#to_hash_digest_paramObject


52
53
54
# File 'lib/hash_digest.rb', line 52

def to_hash_digest_param
  map { |e| e.to_hash_digest_param }.join '/'
end

#to_hash_digest_query(key) ⇒ Object


56
57
58
59
# File 'lib/hash_digest.rb', line 56

def to_hash_digest_query(key)
  prefix = "#{key}[]"
  map { |value| value.to_hash_digest_query(prefix) }.join '&'
end