module Rodauth::ClassMethods

  1. lib/rodauth.rb

Methods

Public Instance

  1. freeze
  2. precompile_rodauth_templates
  3. rodauth

Public Instance methods

freeze()
[show source]
    # File lib/rodauth.rb
540 def freeze
541   opts[:rodauths].each_value(&:freeze)
542   opts[:rodauths].freeze
543   super
544 end
precompile_rodauth_templates()
[show source]
    # File lib/rodauth.rb
524 def precompile_rodauth_templates
525   instance = allocate
526   rodauth = instance.rodauth
527 
528   view_opts = rodauth.send(:loaded_templates).map do |page|
529     rodauth.send(:_view_opts, page)
530   end
531   view_opts << rodauth.send(:button_opts, '', OPTS)
532 
533   view_opts.each do |opts|
534     instance.send(:retrieve_template, opts).send(:compiled_method, opts[:locals].keys.sort_by(&:to_s))
535   end
536 
537   nil
538 end
rodauth(name=nil)
[show source]
    # File lib/rodauth.rb
520 def rodauth(name=nil)
521   opts[:rodauths][name]
522 end