Method: WithValidations.included

Defined in:
lib/with_validations.rb

.included(klass) ⇒ Object

In order to be able to validate options in both instance and singleton methods, the following method makes sure that all module methods are available as both instance and singleton methods.



11
12
13
# File 'lib/with_validations.rb', line 11

def self.included(klass)
  klass.extend(self)
end