Method: Domainic::Command::Result::ErrorSet#add
- Defined in:
- lib/domainic/command/result/error_set.rb
#add(key, message) ⇒ void
This method returns an undefined value.
Adds a new error message for a specific key
61 62 63 64 65 |
# File 'lib/domainic/command/result/error_set.rb', line 61 def add(key, ) key = key.to_sym @lookup[key] ||= [] @lookup[key].concat(Array()) # steep:ignore ArgumentTypeMismatch end |