Sha256: b308ffcbf60f2e6686eda7585a9d0098ea7f58dd2de3cbb80eb1635cdb263b67
Contents?: true
Size: 346 Bytes
Versions: 4
Compression:
Stored size: 346 Bytes
Contents
module BDDGen module Extensions module String # This is a really simple stupid method that can't handle much besides # strings that have spaces, dashes, or underscores. def camelize self.capitalize.gsub(/[ _\-]+([a-z])?/) { $1.upcase } end end end end String.send(:include, BDDGen::Extensions::String)
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
bddgen-0.3.0 | lib/bddgen/extensions/string.rb |
bddgen-0.2.1 | lib/bddgen/extensions/string.rb |
bddgen-0.2.0 | lib/bddgen/extensions/string.rb |
bddgen-0.1.0 | lib/bddgen/extensions/string.rb |