Sha256: c5dd1ef1195f04d608e26684808417282516670d386adedb28beb21d3ab13168
Contents?: true
Size: 634 Bytes
Versions: 5
Compression:
Stored size: 634 Bytes
Contents
module SoberSwag module Reporting module Report ## # Report for a single value. # Basically a wrapper around an array of strings. class Value < Base ## # @param problems [Array<String>] problems with it def initialize(problems) @problems = problems end ## # @return [Array<String>] the problems the value had attr_reader :problems def each_error return enum_for(:each_error) unless block_given? problems.each do |problem| yield nil, problem end end end end end end
Version data entries
5 entries across 5 versions & 1 rubygems