class SoberSwag::Reporting::Report::Either
Models either one set of errors or another. Will enumerate them in order with each_error
Attributes
lhs[R]
@return [Base] left reports
rhs[R]
@return [Base] right reports
Public Class Methods
new(lhs, rhs)
click to toggle source
# File lib/sober_swag/reporting/report/either.rb, line 8 def initialize(lhs, rhs) @lhs = lhs @rhs = rhs end
Public Instance Methods
each_error() { |key, value| ... }
click to toggle source
rubocop:disable Style/ExplicitBlockArgument
# File lib/sober_swag/reporting/report/either.rb, line 21 def each_error return enum_for(:each_error) unless block_given? lhs.each_error do |key, value| yield key, value end rhs.each_error do |key, value| yield key, value end end