Module: AttributeNormalizer::Normalizers::StripNormalizer

Defined in:
lib/attribute_normalizer/normalizers/strip_normalizer.rb

Class Method Summary collapse

Class Method Details

.normalize(value, options = {}) ⇒ Object


4
5
6
# File 'lib/attribute_normalizer/normalizers/strip_normalizer.rb', line 4

def self.normalize(value, options = {})
  value.is_a?(String) ? value.strip : value
end