Sha256: 0e952438be7c9c8f9e52e2e0f06d8bb782bd439f10fc46f30ef2043a921168cc
Contents?: true
Size: 444 Bytes
Versions: 17
Compression:
Stored size: 444 Bytes
Contents
= Fuzzy Hash This is useful when you want to have a lookup table that can either contain strings or regexes. For instance, you might want a catch all for certain regexes that perform a certain logic. >> hash = FuzzyHash.new >> hash[/^\d+$/] = 'number' >> hash[/.*/] = 'something' >> hash['chunky'] = 'bacon' >> hash['foo'] = 'vader' >> hash['foo'] << 'vader' >> hash['food'] << 'something' >> hash['123'] << 'number'
Version data entries
17 entries across 17 versions & 4 rubygems