Module: SecureRandom

Defined in:
lib/kameleon/compat.rb

Overview

Backport of missing SecureRandom methods from 1.9 Snippet from softover.com/UUID_in_Ruby_1.8

Class Method Summary collapse

Class Method Details

.method_missing(method_sym, *arguments, &block) ⇒ Object



8
9
10
11
12
13
14
15
16
17
# File 'lib/kameleon/compat.rb', line 8

def method_missing(method_sym, *arguments, &block)
  case method_sym
  when :urlsafe_base64
    r19_urlsafe_base64(*arguments)
  when :uuid
    r19_uuid(*arguments)
  else
    super
  end
end