Spec-Zone.ru › Ruby on Rails 5.1

класс ActiveSupport::Configurable::Configuration

Родитель:
ActiveSupport::InheritableOptions

Публичные Классовые Методы

compile_methods!(keys) Показать исходный код
# 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 "            def #{key}; _get(#{key.inspect}); end
", __FILE__, __LINE__ + 1
        end
      end

Компилирует методы чтения, чтобы не обращаться к method_missing.

Публичные Методы Экземпляров

compile_methods!() Показать исходный код
# File activesupport/lib/active_support/configurable.rb, line 13
def compile_methods!
  self.class.compile_methods!(keys)
end

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

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API