Sha256: 2d117eb399cb3e25add6890fbed85340c7cfd2ebe4473ef87f8def4cf65bd495
Contents?: true
Size: 617 Bytes
Versions: 7
Compression:
Stored size: 617 Bytes
Contents
module SoberSwag module Reporting module Report ## # Report on problems with a merged object. class MergedObject < Base def initialize(parent, child) @parent = parent @child = child end attr_reader :parent, :child def each_error return enum_for(:each_error) unless block_given? # rubocop:disable Style/ExplicitBlockArgument parent.each_error { |k, v| yield k, v } child.each_error { |k, v| yield k, v } # rubocop:enable Style/ExplicitBlockArgument end end end end end
Version data entries
7 entries across 7 versions & 1 rubygems