Module: StringExtensions
- Included in:
- String
- Defined in:
- lib/cuporter/extensions/string.rb
Overview
Copyright 2010 ThoughtWorks, Inc. Licensed under the MIT License
Instance Method Summary collapse
Instance Method Details
#to_class_name ⇒ Object
3 4 5 |
# File 'lib/cuporter/extensions/string.rb', line 3 def to_class_name gsub(/(^|_)([a-zA-Z])/) {$2.upcase} end |