Class: Symbol
- Inherits:
-
Object
- Object
- Symbol
- Defined in:
- lib/ext/symbol.rb
Overview
:nodoc:
Instance Method Summary collapse
Instance Method Details
#to_underscore_sym ⇒ Object
2 3 4 |
# File 'lib/ext/symbol.rb', line 2 def to_underscore_sym self.to_s.titleize.gsub(/\s+/, '').underscore.to_sym end |