Class: Rodauth::Auth
- Inherits:
-
Object
- Object
- Rodauth::Auth
- Defined in:
- lib/rodauth.rb
Class Attribute Summary collapse
-
.configuration ⇒ Object
readonly
Returns the value of attribute configuration.
-
.configuration_name ⇒ Object
readonly
Returns the value of attribute configuration_name.
-
.features ⇒ Object
readonly
Returns the value of attribute features.
-
.roda_class ⇒ Object
Returns the value of attribute roda_class.
-
.route_hash ⇒ Object
Returns the value of attribute route_hash.
-
.routes ⇒ Object
readonly
Returns the value of attribute routes.
Class Method Summary collapse
Class Attribute Details
.configuration ⇒ Object (readonly)
Returns the value of attribute configuration.
402 403 404 |
# File 'lib/rodauth.rb', line 402 def configuration @configuration end |
.configuration_name ⇒ Object (readonly)
Returns the value of attribute configuration_name.
401 402 403 |
# File 'lib/rodauth.rb', line 401 def configuration_name @configuration_name end |
.features ⇒ Object (readonly)
Returns the value of attribute features.
398 399 400 |
# File 'lib/rodauth.rb', line 398 def features @features end |
.roda_class ⇒ Object
Returns the value of attribute roda_class.
397 398 399 |
# File 'lib/rodauth.rb', line 397 def roda_class @roda_class end |
.route_hash ⇒ Object
Returns the value of attribute route_hash.
400 401 402 |
# File 'lib/rodauth.rb', line 400 def route_hash @route_hash end |
.routes ⇒ Object (readonly)
Returns the value of attribute routes.
399 400 401 |
# File 'lib/rodauth.rb', line 399 def routes @routes end |
Class Method Details
.configure(&block) ⇒ Object
472 473 474 |
# File 'lib/rodauth.rb', line 472 def self.configure(&block) @configuration.apply(&block) end |
.freeze ⇒ Object
476 477 478 479 480 481 |
# File 'lib/rodauth.rb', line 476 def self.freeze @features.freeze @routes.freeze @route_hash.freeze super end |
.inherited(subclass) ⇒ Object
459 460 461 462 463 464 465 466 467 468 469 470 |
# File 'lib/rodauth.rb', line 459 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 |