Class: Hanami::Assets::Config Private

Inherits:
Object
  • Object
show all
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.

Since:

  • 0.1.0

Instance Method Summary collapse

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

Yields:

  • (config)

    the config object

Since:

  • 2.0.0



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.

Since:

  • 0.1.0



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

#settingsSet

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

Returns:

  • (Set)

Since:

  • 2.0.0



34
35
36
# File 'lib/hanami/assets/config.rb', line 34

def settings
  self.class.settings
end