Class: CDMDEXER::UniqueFormatter
- Inherits:
-
Object
- Object
- CDMDEXER::UniqueFormatter
- Defined in:
- lib/cdmdexer/formatters.rb
Class Method Summary collapse
Class Method Details
.format(value) ⇒ Object
57 58 59 60 61 62 63 |
# File 'lib/cdmdexer/formatters.rb', line 57 def self.format(value) if value.respond_to?(:uniq) value.uniq else value.titleize end end |