Sha256: 6e90be4393a63fa42e1fd86f326fe6f0134a91b280bf7e55ca246dbffac19bcf
Contents?: true
Size: 221 Bytes
Versions: 4
Compression:
Stored size: 221 Bytes
Contents
# This extends String to add the +resourcerize+ method. class String # Dasherizes and downcases a camelcased string. Used for Feed types. def resourcerize self.gsub(/([a-z])([A-Z])/, '\1-\2').downcase end end
Version data entries
4 entries across 4 versions & 2 rubygems