Attributes
auth | [R] |
Public Class methods
new(auth, &block)
[show source]
# File lib/rodauth.rb 331 def initialize(auth, &block) 332 @auth = auth 333 # :nocov: 334 # Only for backwards compatibility 335 # RODAUTH3: Remove 336 apply(&block) if block 337 # :nocov: 338 end
Public Instance methods
apply(&block)
[show source]
# File lib/rodauth.rb 340 def apply(&block) 341 load_feature(:base) 342 instance_exec(&block) 343 end
enable(*features)
[show source]
# File lib/rodauth.rb 345 def enable(*features) 346 features.each do |feature| 347 next if @auth.features.include?(feature) 348 load_feature(feature) 349 @auth.features << feature 350 end 351 end