Module: Rodauth::InstanceMethods

Defined in:
lib/rodauth.rb

Instance Method Summary collapse

Instance Method Details

#rodauth(name = nil) ⇒ Object



232
233
234
235
236
237
238
# File 'lib/rodauth.rb', line 232

def rodauth(name=nil)
  if name
    (@_rodauths ||= {})[name] ||= self.class.rodauth(name).new(self)
  else
    @_rodauth ||= self.class.rodauth.new(self)
  end
end