Module: Skylight::Normalizers Private

Defined in:
lib/skylight/normalizers.rb,
lib/skylight/normalizers/default.rb,
lib/skylight/normalizers/moped/query.rb,
lib/skylight/normalizers/active_record/sql.rb,
lib/skylight/normalizers/active_support/cache.rb,
lib/skylight/normalizers/active_support/cache_read.rb,
lib/skylight/normalizers/action_view/render_partial.rb,
lib/skylight/normalizers/active_support/cache_clear.rb,
lib/skylight/normalizers/active_support/cache_exist.rb,
lib/skylight/normalizers/active_support/cache_write.rb,
lib/skylight/normalizers/action_controller/send_file.rb,
lib/skylight/normalizers/action_view/render_template.rb,
lib/skylight/normalizers/active_support/cache_delete.rb,
lib/skylight/normalizers/action_view/render_collection.rb,
lib/skylight/normalizers/active_support/cache_generate.rb,
lib/skylight/normalizers/active_support/cache_decrement.rb,
lib/skylight/normalizers/active_support/cache_fetch_hit.rb,
lib/skylight/normalizers/active_support/cache_increment.rb,
lib/skylight/normalizers/active_support/cache_read_multi.rb,
lib/skylight/normalizers/action_controller/process_action.rb

Overview

This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.

Convert AS::N events to Skylight events

API:

  • private

Defined Under Namespace

Modules: ActionController, ActionView, ActiveRecord, ActiveSupport, Moped Classes: Container, Default, Normalizer, RenderNormalizer

Constant Summary collapse

DEFAULT =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

API:

  • private

Default.new

Class Method Summary collapse

Class Method Details

.build(config) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

API:

  • private



15
16
17
18
19
20
21
22
23
24
25
26
27
28
# File 'lib/skylight/normalizers.rb', line 15

def self.build(config)
  normalizers = {}

  (@registry || {}).each do |k, klass|
    unless klass.method_defined?(:normalize)
      # TODO: Warn
      next
    end

    normalizers[k] = klass.new(config)
  end

  Container.new(normalizers)
end

.register(name, klass) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

API:

  • private



10
11
12
13
# File 'lib/skylight/normalizers.rb', line 10

def self.register(name, klass)
  (@registry ||= {})[name] = klass
  klass
end