Module: Digest

Defined in:
lib/framework/autocomplete/Digest.rb,
lib/extensions/digest/digest.rb,
lib/extensions/digest/digest/hmac.rb,
lib/extensions/digest-sha2/sha2/sha2.rb

Overview

It is auto-generated content. Do not do required for this file in your application.

Defined Under Namespace

Modules: Instance Classes: Class, HMAC, MD5, SHA1, SHA2, SHA256, SHA384, SHA512

Class Method Summary collapse

Class Method Details

.const_missing(name) ⇒ Object



4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# File 'lib/extensions/digest/digest.rb', line 4

def self.const_missing(name)
  case name
  when :SHA256, :SHA384, :SHA512
    lib = 'digest/sha2.so'
  else
    lib = File.join('digest', name.to_s.downcase)
  end

  begin
    require lib
  rescue LoadError => e
    raise LoadError, "library not found for class Digest::#{name} -- #{lib}", caller(1)
  end
  unless Digest.const_defined?(name)
    raise NameError, "uninitialized constant Digest::#{name}", caller(1)
  end
  Digest.const_get(name)
end

.hexencode(req) ⇒ Object



23
24
# File 'lib/framework/autocomplete/Digest.rb', line 23

def self.hexencode(req)
end