Class: String

Inherits:
Object show all
Defined in:
lib/string_extension.rb

Overview

:nodoc:

Instance Method Summary collapse

Instance Method Details

#to_class_nameObject



2
3
4
# File 'lib/string_extension.rb', line 2

def to_class_name
  gsub(/(^|_)(.)/) { $2.upcase }  
end