Sha256: 709bf031113bee63bdf133231cc1809ae89217f0bb35f77c1909eca68d785cf9
Contents?: true
Size: 803 Bytes
Versions: 1
Compression:
Stored size: 803 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] # def register(handler) known.register(handler) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
stenotype-0.1.0 | lib/stenotype/context_handlers.rb |