Class: Skylight::Normalizers::Normalizer Private
- Defined in:
- lib/skylight/normalizers.rb
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Direct Known Subclasses
ActionController::ProcessAction, ActiveRecord::SQL, ActiveSupport::Cache, Moped::Query, RenderNormalizer
Instance Attribute Summary collapse
- #config ⇒ Object readonly private
Class Method Summary collapse
- .register(name) ⇒ Object private
Instance Method Summary collapse
-
#initialize(config) ⇒ Normalizer
constructor
private
A new instance of Normalizer.
Constructor Details
#initialize(config) ⇒ Normalizer
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.
Returns a new instance of Normalizer.
37 38 39 40 |
# File 'lib/skylight/normalizers.rb', line 37 def initialize(config) @config = config setup if respond_to?(:setup) end |
Instance Attribute Details
#config ⇒ Object (readonly)
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.
35 36 37 |
# File 'lib/skylight/normalizers.rb', line 35 def config @config end |
Class Method Details
.register(name) ⇒ 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.
31 32 33 |
# File 'lib/skylight/normalizers.rb', line 31 def self.register(name) Normalizers.register(name, self) end |