Class: Hashtastic::Digester
- Inherits:
-
Object
- Object
- Hashtastic::Digester
- Defined in:
- lib/hashtastic/digester.rb
Class Method Summary collapse
Class Method Details
.call(dictionary, filter = []) ⇒ Object
6 7 8 9 10 |
# File 'lib/hashtastic/digester.rb', line 6 def call(dictionary, filter = []) dictionary = filter.empty? ? dictionary : extractor(dictionary, filter) URI.encode_www_form(dictionary.to_a.sort) end |