Module: Rodauth::ClassMethods

Defined in:
lib/rodauth.rb

Instance Method Summary collapse

Instance Method Details

#freezeObject



246
247
248
249
250
251
252
# File 'lib/rodauth.rb', line 246

def freeze
  if opts[:rodauths]
    opts[:rodauths].each_value(&:freeze)
    opts[:rodauths].freeze
  end
  super
end

#rodauth(name = nil) ⇒ Object



242
243
244
# File 'lib/rodauth.rb', line 242

def rodauth(name=nil)
  opts[:rodauths][name]
end