Attributes
| auth | [R] |
Public Class methods
new(auth, &block)
[show source]
# File lib/rodauth.rb 378 def initialize(auth, &block) 379 @auth = auth 380 # :nocov: 381 # Only for backwards compatibility 382 # RODAUTH3: Remove 383 apply(&block) if block 384 # :nocov: 385 end
Public Instance methods
apply(&block)
[show source]
# File lib/rodauth.rb 387 def apply(&block) 388 load_feature(:base) 389 instance_exec(&block) 390 end
enable(*features)
[show source]
# File lib/rodauth.rb 392 def enable(*features) 393 features.each do |feature| 394 next if @auth.features.include?(feature) 395 load_feature(feature) 396 @auth.features << feature 397 end 398 end