class Doorkeeper::Config::ScopesBuilder

def build

def build
  @scopes
end

def initialize(&block)

def initialize(&block)
  @scopes = Doorkeeper::Scopes.new
  instance_eval &block
end

def scope(name, options)

def scope(name, options)
  @scopes.add Doorkeeper::Scope.new(name, options)
end