class ActiveSupport::Configurable::Configuration

Parent:
ActiveSupport::InheritableOptions

Public Class Methods

compile_methods!(keys) Show source
# File activesupport/lib/active_support/configurable.rb, line 18
      def self.compile_methods!(keys)
        keys.reject { |m| method_defined?(m) }.each do |key|
          class_eval <<-RUBY, __FILE__, __LINE__ + 1
            def #{key}; _get(#{key.inspect}); end
          RUBY
        end
      end

Compiles reader methods so we don't have to go through method_missing.

Public Instance Methods

compile_methods!() Show source
# File activesupport/lib/active_support/configurable.rb, line 13
def compile_methods!
  self.class.compile_methods!(keys)
end

© 2004–2019 David Heinemeier Hansson
Licensed under the MIT License.