Sha256: 45b330d8545e55980eff964f9792b3c937ab9dd96f67ef475d459870dd7c5f3b
Contents?: true
Size: 309 Bytes
Versions: 1
Compression:
Stored size: 309 Bytes
Contents
# # Extend string class to PascalCase* snake_cased_strings. # Monkey patching that's only needed in this file so far. # Move it to utilitiies? Other? # # * It's Pascal case, not camel case. It starts with a capital. # class String def pascal_case split('_').map(&:capitalize).join end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rutl-0.8.0 | lib/utilities/string.rb |