Class: Symbol
- Inherits:
-
Object
- Object
- Symbol
- Defined in:
- lib/symbol.rb
Instance Method Summary collapse
Instance Method Details
#camelize(type = :upper) ⇒ Object
2 3 4 |
# File 'lib/symbol.rb', line 2 def camelize(type = :upper) to_s.camelize(type).to_sym end |
#underscore ⇒ Object
6 7 8 |
# File 'lib/symbol.rb', line 6 def underscore to_s.underscore.to_sym end |