Module: ExtlibCopy
- Defined in:
- lib/inflection.rb
Overview
Modified for the need of this software package
Defined Under Namespace
Modules: Inflection
Class Method Summary collapse
-
.classify(name) ⇒ Object
Same as Inflection.classify but without the singularization.
Class Method Details
.classify(name) ⇒ Object
Same as Inflection.classify but without the singularization
29 30 31 32 |
# File 'lib/inflection.rb', line 29 def self.classify(name) words = name.to_s.sub(/.*\./, '').split('_') words.collect { |word| word.capitalize }.join end |