Method: LHS::Problems::Base#add

Defined in:
lib/lhs/problems/base.rb

#add(attribute, message = :invalid, options = {}) ⇒ Object



19
20
21
22
# File 'lib/lhs/problems/base.rb', line 19

def add(attribute, message = :invalid, options = {})
  self[attribute]
  messages[attribute] << generate_message(attribute, message, options)
end