Module HTAuth
In: lib/htauth/algorithm.rb
lib/htauth/crypt.rb
lib/htauth/digest.rb
lib/htauth/digest_entry.rb
lib/htauth/digest_file.rb
lib/htauth/entry.rb
lib/htauth/file.rb
lib/htauth/md5.rb
lib/htauth/passwd.rb
lib/htauth/passwd_entry.rb
lib/htauth/passwd_file.rb
lib/htauth/plaintext.rb
lib/htauth/sha1.rb
lib/htauth/version.rb
lib/htauth.rb
lib/htauth/algorithm.rb
lib/htauth/crypt.rb
lib/htauth/digest.rb
lib/htauth/digest_entry.rb
lib/htauth/digest_file.rb
lib/htauth/entry.rb
lib/htauth/file.rb
lib/htauth/md5.rb
lib/htauth/passwd.rb
lib/htauth/passwd_entry.rb
lib/htauth/passwd_file.rb
lib/htauth/plaintext.rb
lib/htauth/sha1.rb
lib/htauth/version.rb
lib/htauth.rb

Methods

Classes and Modules

Module HTAuth::Version
Class HTAuth::Algorithm
Class HTAuth::Crypt
Class HTAuth::Digest
Class HTAuth::DigestEntry
Class HTAuth::DigestFile
Class HTAuth::DigestFileError
Class HTAuth::Entry
Class HTAuth::File
Class HTAuth::FileAccessError
Class HTAuth::InvalidAlgorithmError
Class HTAuth::InvalidDigestEntry
Class HTAuth::InvalidPasswdEntry
Class HTAuth::Md5
Class HTAuth::Passwd
Class HTAuth::PasswdEntry
Class HTAuth::PasswdFile
Class HTAuth::PasswdFileError
Class HTAuth::PasswordError
Class HTAuth::Plaintext
Class HTAuth::Sha1
Class HTAuth::TempFileError

Constants

VERSION = Version.to_s
VERSION = Version.to_s

Public Class methods

[Source]

    # File lib/htauth.rb, line 20
20:   def self.lib_path( *args )
21:     self.sub_path( "lib", *args )
22:   end

[Source]

    # File lib/htauth.rb, line 20
20:   def self.lib_path( *args )
21:     self.sub_path( "lib", *args )
22:   end

The root directory of the project is considered to be the parent directory of the ‘lib’ directory.

[Source]

    # File lib/htauth.rb, line 11
11:   def self.root_dir
12:     unless @root_dir
13:       path_parts = ::File.expand_path( __FILE__ ).split( ::File::SEPARATOR )
14:       lib_index  = path_parts.rindex( 'lib' )
15:       @root_dir  = path_parts[ 0...lib_index].join( ::File::SEPARATOR ) + ::File::SEPARATOR
16:     end
17:     return @root_dir
18:   end

The root directory of the project is considered to be the parent directory of the ‘lib’ directory.

[Source]

    # File lib/htauth.rb, line 11
11:   def self.root_dir
12:     unless @root_dir
13:       path_parts = ::File.expand_path( __FILE__ ).split( ::File::SEPARATOR )
14:       lib_index  = path_parts.rindex( 'lib' )
15:       @root_dir  = path_parts[ 0...lib_index].join( ::File::SEPARATOR ) + ::File::SEPARATOR
16:     end
17:     return @root_dir
18:   end

[Source]

    # File lib/htauth.rb, line 24
24:   def self.sub_path( sub, *args )
25:     sp = ::File.join( root_dir, sub ) + ::File::SEPARATOR
26:     sp = ::File.join( sp, *args ) if args
27:   end

[Source]

    # File lib/htauth.rb, line 24
24:   def self.sub_path( sub, *args )
25:     sp = ::File.join( root_dir, sub ) + ::File::SEPARATOR
26:     sp = ::File.join( sp, *args ) if args
27:   end

[Validate]