class Rails::Initializable::Initializer

def after

def after
  @options[:after]
end

def before

def before
  @options[:before]
end

def belongs_to?(group)

def belongs_to?(group)
  @options[:group] == group || @options[:group] == :all
end

def bind(context)

def bind(context)
  return self if @context
  Initializer.new(@name, context, @options, &block)
end

def context_class

def context_class
  @context.class
end

def initialize(name, context, options, &block)

def initialize(name, context, options, &block)
  options[:group] ||= :default
  @name, @context, @options, @block = name, context, options, block
end

def run(*args)

def run(*args)
  @context.instance_exec(*args, &block)
end