Sha256: 3f9585930b8221cf5dfb20e5aeaba0993cc7b5108860476872c02c83311d1912

Contents?: true

Size: 770 Bytes

Versions: 11

Compression:

Stored size: 770 Bytes

Contents

# frozen_string_literal: true

require "stenotype/context_handlers/base"
require "stenotype/context_handlers/rails/controller"
require "stenotype/context_handlers/rails/active_job"
require "stenotype/context_handlers/klass"
require "stenotype/context_handlers/collection"

module Stenotype
  #
  # A namespace to contain various context
  # handlers implementations
  #
  module ContextHandlers
    class << self
      attr_writer :known
      #
      # @return {Array<#publish>} A list of handlers implementing [#publish]
      #
      def known
        @known ||= Stenotype::ContextHandlers::Collection.new
      end

      #
      # @param handler {#publish} A handler with implemented method [#publish]
      #
      delegate :register, to: :known
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
stenotype-0.1.13 lib/stenotype/context_handlers.rb
stenotype-0.1.12 lib/stenotype/context_handlers.rb
stenotype-0.1.10 lib/stenotype/context_handlers.rb
stenotype-0.1.9 lib/stenotype/context_handlers.rb
stenotype-0.1.8 lib/stenotype/context_handlers.rb
stenotype-0.1.7 lib/stenotype/context_handlers.rb
stenotype-0.1.6 lib/stenotype/context_handlers.rb
stenotype-0.1.5 lib/stenotype/context_handlers.rb
stenotype-0.1.4 lib/stenotype/context_handlers.rb
stenotype-0.1.2 lib/stenotype/context_handlers.rb
stenotype-0.1.1 lib/stenotype/context_handlers.rb