Class: String

Inherits:
Object show all
Defined in:
lib/core_ext/symbolize.rb

Instance Method Summary collapse

Instance Method Details

#symbolizeObject



8
# File 'lib/core_ext/symbolize.rb', line 8

def symbolize; match(/\A\w+\z/) ? to_sym : self; end