Sha256: 3cf3572677976fbb1ac7e5b084a005c632b830d9021c28d4da68a7eb6ad9bf51

Contents?: true

Size: 635 Bytes

Versions: 15

Compression:

Stored size: 635 Bytes

Contents

# frozen_string_literal: true

require 'orthoses/outputable/avoid_recursive_ancestor_error'
require 'orthoses/outputable/constantizable_filter'
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 = ConstantizableFilter.new(@loader)
      @loader = UniqContentBody.new(@loader)
      super
    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
orthoses-1.17.0 lib/orthoses/outputable.rb
orthoses-1.16.0 lib/orthoses/outputable.rb
orthoses-1.15.0 lib/orthoses/outputable.rb
orthoses-1.14.0 lib/orthoses/outputable.rb
orthoses-1.13.0 lib/orthoses/outputable.rb
orthoses-1.12.0 lib/orthoses/outputable.rb
orthoses-1.11.0 lib/orthoses/outputable.rb
orthoses-1.10.0 lib/orthoses/outputable.rb
orthoses-1.9.0 lib/orthoses/outputable.rb
orthoses-1.8.0 lib/orthoses/outputable.rb
orthoses-1.7.0 lib/orthoses/outputable.rb
orthoses-1.6.0 lib/orthoses/outputable.rb
orthoses-1.5.0 lib/orthoses/outputable.rb
orthoses-1.4.0 lib/orthoses/outputable.rb
orthoses-1.3.0 lib/orthoses/outputable.rb