Sha256: 7abdfd19708049de7cdb2166fb4e4c8073c50f742c6e5ef2162cbb1fae614261
Contents?: true
Size: 997 Bytes
Versions: 6
Compression:
Stored size: 997 Bytes
Contents
# frozen_string_literal: true require "dry/configurable" module Hanami module Assets # App config for assets. # # This is NOT RELEASED as of 2.0.0. # # @api private class Config include Dry::Configurable # Initialize the Config # # @yield [config] the config object # # @return [Config] # # @since 2.0.0 # @api private def initialize(*) super yield self if block_given? end # Returns the list of available settings # # @return [Set] # # @since 2.0.0 # @api private def settings self.class.settings end private def method_missing(name, *args, &block) if config.respond_to?(name) config.public_send(name, *args, &block) else super end end def respond_to_missing?(name, _incude_all = false) config.respond_to?(name) || super end end end end
Version data entries
6 entries across 6 versions & 1 rubygems