Top Level Namespace

Defined Under Namespace

Modules: AttributeNormalizer

Instance Method Summary collapse

Instance Method Details

#include_attribute_normalizer(class_or_module) ⇒ Object


55
56
57
58
59
60
# File 'lib/attribute_normalizer.rb', line 55

def include_attribute_normalizer(class_or_module)
  return if class_or_module.include?(AttributeNormalizer)
  class_or_module.class_eval do
    extend AttributeNormalizer::ClassMethods
  end
end