module ActiveSupport::Configurable::ClassMethods
Public Instance Methods
config()
click to toggle source
# File lib/active_support/configurable.rb, line 29 def config @_config ||= if respond_to?(:superclass) && superclass.respond_to?(:config) superclass.config.inheritable_copy else # create a new "anonymous" class that will host the compiled reader methods Class.new(Configuration).new end end
configure() { |config| ... }
click to toggle source
# File lib/active_support/configurable.rb, line 38 def configure yield config end