Module: AttributeNormalizer

Defined in:
lib/attribute_normalizer.rb,
lib/attribute_normalizer/version.rb,
lib/attribute_normalizer/rspec_matcher.rb,
lib/attribute_normalizer/model_inclusions.rb,
lib/attribute_normalizer/normalizers/blank_normalizer.rb,
lib/attribute_normalizer/normalizers/phone_normalizer.rb,
lib/attribute_normalizer/normalizers/strip_normalizer.rb,
lib/attribute_normalizer/normalizers/squish_normalizer.rb,
lib/attribute_normalizer/normalizers/boolean_normalizer.rb,
lib/attribute_normalizer/normalizers/whitespace_normalizer.rb

Defined Under Namespace

Modules: ClassMethods, Normalizers, RSpecMatcher, Version Classes: Configuration, MissingNormalizer

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.configurationObject

Returns the value of attribute configuration


13
14
15
# File 'lib/attribute_normalizer.rb', line 13

def configuration
  @configuration
end

Class Method Details

.configure {|configuration| ... } ⇒ Object

Yields:


20
21
22
# File 'lib/attribute_normalizer.rb', line 20

def self.configure
  yield(configuration)
end

.included(base) ⇒ Object


3
4
5
# File 'lib/attribute_normalizer/model_inclusions.rb', line 3

def self.included(base)
  base.extend ClassMethods
end