Class: String

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

Instance Method Summary collapse

Instance Method Details

#symbolizeObject



4
5
6
# File 'lib/etapper/core_ext/string.rb', line 4

def symbolize
  self.snakecase.tr(' ','_').gsub(/[^\w_]/,'').sub(/^(\d)/,'_\1').to_sym
end