Sha256: 95bd0e99df17608d55d2f593eca3f3e1b71bc3375c69e479049d7af8c03b1d32
Contents?: true
Size: 695 Bytes
Versions: 7
Compression:
Stored size: 695 Bytes
Contents
module SoberSwag module Reporting module Report ## # Report on problems with an object. class Object < Base ## # @param problems [Hash<Symbol, Report::Base>] the problems with each value. def initialize(problems) @problems = problems end ## # @return [Hash] the hash being reported on attr_reader :problems def each_error return enum_for(:each_error) unless block_given? problems.each do |k, v| v.each_error do |nested, err| yield [".#{k}", nested].reject(&:nil?).join(''), err end end end end end end end
Version data entries
7 entries across 7 versions & 1 rubygems