class Doorkeeper::Config::AbstractBuilder
builder. Instantiates and validates gem configuration.
Abstract base class for Doorkeeper and it’s extensions configuration
def build
-
(Doorkeeper::Config)
- config instance
def build @config.validate! if @config.respond_to?(:validate!) @config end
def initialize(config = Config.new, &block)
-
config
(Class
) -- class
def initialize(config = Config.new, &block) @config = config instance_eval(&block) if block_given? end