class SoberSwag::Reporting::Report::Value

Report for a single value. Basically a wrapper around an array of strings.

Attributes

problems[R]

@return [Array<String>] the problems the value had

Public Class Methods

new(problems) click to toggle source

@param problems [Array<String>] problems with it

# File lib/sober_swag/reporting/report/value.rb, line 10
def initialize(problems)
  @problems = problems
end

Public Instance Methods

each_error() { |nil, problem| ... } click to toggle source
# File lib/sober_swag/reporting/report/value.rb, line 18
def each_error
  return enum_for(:each_error) unless block_given?

  problems.each do |problem|
    yield nil, problem
  end
end