Sha256: e05838e735eeac0643dedb502bc4576e4f376b48c5e17b958498f1ec84fa0f49
Contents?: true
Size: 571 Bytes
Versions: 1
Compression:
Stored size: 571 Bytes
Contents
# frozen_string_literal: true module Orthoses module Outputable # UniqContentBody is an internal middleware # It's using on orthoses/outputable.rb class UniqContentBody def initialize(loader) @loader = loader end def call @loader.call.tap do |store| store.each do |name, content| begin content.uniq! rescue NameError, LoadError => err Orthoses.logger.error(err.inspect) next end end end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
orthoses-1.2.0 | lib/orthoses/outputable/uniq_content_body.rb |