跳至内容 跳至搜索
方法
C
I
R

实例公共方法

configure(&block)

# File railties/lib/rails/railtie/configurable.rb, line 25
def configure(&block)
  class_eval(&block)
end

inherited(base)

# File railties/lib/rails/railtie/configurable.rb, line 13
def inherited(base)
  raise "You cannot inherit from a #{superclass.name} child"
end

instance()

# File railties/lib/rails/railtie/configurable.rb, line 17
def instance
  @instance ||= new
end

respond_to?(*args)

# File railties/lib/rails/railtie/configurable.rb, line 21
def respond_to?(*args)
  super || instance.respond_to?(*args)
end