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