Module: Spellr::Validations::ClassMethods

Defined in:
lib/spellr/validations.rb

Instance Method Summary collapse

Instance Method Details

#validate(method) ⇒ Object



14
15
16
# File 'lib/spellr/validations.rb', line 14

def validate(method)
  validations << method
end

#validationsObject



10
11
12
# File 'lib/spellr/validations.rb', line 10

def validations
  @validations ||= []
end