Class: Symbol

Inherits:
Object
  • Object
show all
Defined in:
lib/amiba/core_ext/symbol.rb

Instance Method Summary collapse

Instance Method Details

#pluralizeObject



4
5
6
# File 'lib/amiba/core_ext/symbol.rb', line 4

def pluralize
  ActiveSupport::Inflector.pluralize(self.to_s).to_sym
end

#singularizeObject



8
9
10
# File 'lib/amiba/core_ext/symbol.rb', line 8

def singularize
  ActiveSupport::Inflector.singularize(self.to_s).to_sym
end