Attributes
auth | [R] |
Public Class methods
new(auth, &block)
[show source]
# File lib/rodauth.rb 312 def initialize(auth, &block) 313 @auth = auth 314 # :nocov: 315 # Only for backwards compatibility 316 # RODAUTH3: Remove 317 apply(&block) if block 318 # :nocov: 319 end
Public Instance methods
apply(&block)
[show source]
# File lib/rodauth.rb 321 def apply(&block) 322 load_feature(:base) 323 instance_exec(&block) 324 end
enable(*features)
[show source]
# File lib/rodauth.rb 326 def enable(*features) 327 features.each do |feature| 328 next if @auth.features.include?(feature) 329 load_feature(feature) 330 @auth.features << feature 331 end 332 end