Class: CDMDEXER::Titlieze

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

Class Method Summary collapse

Class Method Details

.format(value) ⇒ Object



67
68
69
70
71
72
73
# File 'lib/cdmdexer/formatters.rb', line 67

def self.format(value)
  if value.respond_to?(:map)
    value.map {|value| value.titleize }
  else
    value.titleize
  end
end