class Doorkeeper::Config::AbstractBuilder


builder. Instantiates and validates gem configuration.
Abstract base class for Doorkeeper and it’s extensions configuration

def build

Returns:
  • (Doorkeeper::Config) - config instance
def build
  @config.validate! if @config.respond_to?(:validate!)
  @config
end

def initialize(config = Config.new, &block)

Parameters:
  • config (Class) -- class
def initialize(config = Config.new, &block)
  @config = config
  instance_eval(&block) if block_given?
end