Methods
A
B
N
R
Attributes
[R] block
[R] name
Class Public methods
new(name, context, options, &block)
# File railties/lib/rails/initializable.rb, line 12
def initialize(name, context, options, &block)
  options[:group] ||= :default
  @name, @context, @options, @block = name, context, options, block
end
Instance Public methods
after()
# File railties/lib/rails/initializable.rb, line 21
def after
  @options[:after]
end
before()
# File railties/lib/rails/initializable.rb, line 17
def before
  @options[:before]
end
belongs_to?(group)
# File railties/lib/rails/initializable.rb, line 25
def belongs_to?(group)
  @options[:group] == group || @options[:group] == :all
end
bind(context)
# File railties/lib/rails/initializable.rb, line 33
def bind(context)
  return self if @context
  Initializer.new(@name, context, @options, &block)
end
run(*args)
# File railties/lib/rails/initializable.rb, line 29
def run(*args)
  @context.instance_exec(*args, &block)
end