Class: Rodauth::Auth

Inherits:
Object
  • Object
show all
Defined in:
lib/rodauth.rb

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.configurationObject (readonly)

Returns the value of attribute configuration.



423
424
425
# File 'lib/rodauth.rb', line 423

def configuration
  @configuration
end

.configuration_nameObject (readonly)

Returns the value of attribute configuration_name.



422
423
424
# File 'lib/rodauth.rb', line 422

def configuration_name
  @configuration_name
end

.featuresObject (readonly)

Returns the value of attribute features.



419
420
421
# File 'lib/rodauth.rb', line 419

def features
  @features
end

.roda_classObject

Returns the value of attribute roda_class.



418
419
420
# File 'lib/rodauth.rb', line 418

def roda_class
  @roda_class
end

.route_hashObject

Returns the value of attribute route_hash.



421
422
423
# File 'lib/rodauth.rb', line 421

def route_hash
  @route_hash
end

.routesObject (readonly)

Returns the value of attribute routes.



420
421
422
# File 'lib/rodauth.rb', line 420

def routes
  @routes
end

Class Method Details

.configure(&block) ⇒ Object



493
494
495
# File 'lib/rodauth.rb', line 493

def self.configure(&block)
  @configuration.apply(&block)
end

.freezeObject



497
498
499
500
501
502
# File 'lib/rodauth.rb', line 497

def self.freeze
  @features.freeze
  @routes.freeze
  @route_hash.freeze
  super
end

.inherited(subclass) ⇒ Object



480
481
482
483
484
485
486
487
488
489
490
491
# File 'lib/rodauth.rb', line 480

def self.inherited(subclass)
  super
  superclass = self
  subclass.instance_exec do
    @roda_class = superclass.roda_class
    @features = superclass.features.clone
    @routes = superclass.routes.clone
    @route_hash = superclass.route_hash.clone
    @configuration = superclass.configuration.clone
    @configuration.instance_variable_set(:@auth, self)
  end
end