Module: ClassifierReborn::CategoryNamer

Defined in:
lib/classifier-reborn/category_namer.rb

Class Method Summary collapse

Class Method Details

.prepare_name(name) ⇒ Object



13
14
15
16
17
# File 'lib/classifier-reborn/category_namer.rb', line 13

def prepare_name(name)
  return name if name.is_a?(Symbol)

  name.to_s.tr('_', ' ').capitalize.intern
end