Class: String

Inherits:
Object
  • Object
show all
Defined in:
lib/jumoku/ext/ext.rb

Instance Method Summary collapse

Instance Method Details

#constantizeObject



60
61
62
# File 'lib/jumoku/ext/ext.rb', line 60

def constantize
  to_s.gsub(/(_|^)(\w)/) { $2.upcase }
end