Exception: Confset::Validation::Error
- Inherits:
-
StandardError
- Object
- StandardError
- Confset::Validation::Error
- Defined in:
- lib/confset/validation/error.rb
Class Method Summary collapse
Class Method Details
.format(v_res) ⇒ Object
6 7 8 9 10 |
# File 'lib/confset/validation/error.rb', line 6 def self.format(v_res) v_res.errors.group_by(&:path).map do |path, | "#{' ' * 2}#{path.join('.')}: #{.map(&:text).join('; ')}" end.join("\n") end |