Top Level Namespace

Constant Summary collapse

Classy_Name_Version =
"0.1.1"

Instance Method Summary collapse

Instance Method Details

#Classy_Name(str) ⇒ Object



3
4
5
6
7
8
9
10
# File 'lib/Classy_Name.rb', line 3

def Classy_Name str
  str
  .gsub( /[^a-z0-9A]+/i, '_')
  .sub( /^[^a-z]+/i, '')
  .split( "_" )
  .map(&:capitalize)
  .join('_')
end