Class: CDMBL::UniqueFormatter

Inherits:
Object
  • Object
show all
Defined in:
lib/cdmbl/formatters.rb

Class Method Summary collapse

Class Method Details

.format(value) ⇒ Object



57
58
59
60
61
62
63
# File 'lib/cdmbl/formatters.rb', line 57

def self.format(value)
  if value.respond_to?(:uniq)
    value.uniq
  else
    value.titleize
  end
end