From 58364e9514e7f1226eee935d3cb242289799665f Mon Sep 17 00:00:00 2001 From: Pete Nicholls Date: Thu, 27 Aug 2015 10:27:24 +1200 Subject: [PATCH] Support respond_to? --- lib/less_secure_random.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/less_secure_random.rb b/lib/less_secure_random.rb index 7a09b27..fac3790 100644 --- a/lib/less_secure_random.rb +++ b/lib/less_secure_random.rb @@ -7,5 +7,9 @@ class << self def method_missing(method, *args, &block) @memo[[method, args, block]] ||= SecureRandom.send(method, *args, &block) end + + def respond_to_missing?(*args) + SecureRandom.respond_to_missing?(*args) + end end end