Class: String

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

Overview

:nodoc:

Instance Method Summary collapse

Instance Method Details

#to_underscore_symObject



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

def to_underscore_sym
  self.titleize.gsub(/\s+/, '').underscore.to_sym
end