Sha256: 790adcf1c1b17a65f6ed9e1ec343ca2babd6a09bf870d92e75fc9b454a9fcca5

Contents?: true

Size: 533 Bytes

Versions: 1

Compression:

Stored size: 533 Bytes

Contents

# frozen_string_literal: true

require 'orthoses/outputable/avoid_recursive_ancestor_error'
require 'orthoses/outputable/uniq_content_body'

module Orthoses
  # Module for output middleware.
  # Call internal some middleware on output phase.
  #   class Sample
  #     prepend Outputable
  #
  #     def initialize(loader)
  #       ...
  #     def call
  #       ...
  module Outputable
    def call
      @loader = AvoidRecursiveAncestorError.new(@loader)
      @loader = UniqContentBody.new(@loader)
      super
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
orthoses-1.2.0 lib/orthoses/outputable.rb