Class: Symbol
- Inherits:
-
Object
- Object
- Symbol
- Defined in:
- lib/amiba/core_ext/symbol.rb
Instance Method Summary collapse
Instance Method Details
#pluralize ⇒ Object
4 5 6 |
# File 'lib/amiba/core_ext/symbol.rb', line 4 def pluralize ActiveSupport::Inflector.pluralize(self.to_s).to_sym end |
#singularize ⇒ Object
8 9 10 |
# File 'lib/amiba/core_ext/symbol.rb', line 8 def singularize ActiveSupport::Inflector.singularize(self.to_s).to_sym end |