Class: Hanami::Assets::Config Private
- Inherits:
-
Object
- Object
- Hanami::Assets::Config
- Includes:
- Dry::Configurable
- Defined in:
- lib/hanami/assets/config.rb
Overview
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.
App config for assets.
This is NOT RELEASED as of 2.0.0.
Instance Method Summary collapse
-
#initialize {|config| ... } ⇒ Config
constructor
private
Initialize the Config.
-
#settings ⇒ Set
private
Returns the list of available settings.
Constructor Details
#initialize {|config| ... } ⇒ Config
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.
Initialize the Config
23 24 25 26 |
# File 'lib/hanami/assets/config.rb', line 23 def initialize(*) super yield self if block_given? end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(name, *args, &block) ⇒ Object (private)
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.
40 41 42 43 44 45 46 |
# File 'lib/hanami/assets/config.rb', line 40 def method_missing(name, *args, &block) if config.respond_to?(name) config.public_send(name, *args, &block) else super end end |
Instance Method Details
#settings ⇒ Set
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 the list of available settings
34 35 36 |
# File 'lib/hanami/assets/config.rb', line 34 def settings self.class.settings end |