Sha256: 7881bc4e30dfcca10a44cb7e5c74976b909045821b3c2fed039175e2bb539a35
Contents?: true
Size: 301 Bytes
Versions: 21
Compression:
Stored size: 301 Bytes
Contents
class String ## # Replace +hash+ keys with associated values. def tokenize! hash = {} hash.each { |key, value| gsub! /:#{key}/, value.to_s } self end ## # Replace +hash+ keys with associated values. def tokenize hash = {} self.dup.tokenize! hash end end
Version data entries
21 entries across 21 versions & 1 rubygems