Method: CabbageDoc::Authentication.new

Defined in:
lib/cabbage_doc/authentication.rb

.new(request = nil, tag = nil) ⇒ Object



4
5
6
7
8
9
10
# File 'lib/cabbage_doc/authentication.rb', line 4

def new(request = nil, tag = nil)
  super().tap do |auth|
    auth.tag = tag if tag
    yield(auth) if block_given?
    Configuration.instance.authentication.call(auth, request)
  end
end