Method: LHS::Problems::Base#add

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

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



17
18
19
20
# File 'lib/lhs/problems/base.rb', line 17

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