From eadd110c771efbdd0f2820a3491624a38fa2d9d0 Mon Sep 17 00:00:00 2001 From: Daniel Evans Date: Thu, 12 Aug 2021 15:59:46 -0700 Subject: [PATCH] Correct module lookup when including ffi-module --- lib/ffi/library.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ffi/library.rb b/lib/ffi/library.rb index 1f8602b95..43b2bfe15 100644 --- a/lib/ffi/library.rb +++ b/lib/ffi/library.rb @@ -84,7 +84,7 @@ module Library # @raise {RuntimeError} if +mod+ is not a Module # Test if extended object is a Module. If not, raise RuntimeError. def self.extended(mod) - raise RuntimeError.new("must only be extended by module") unless mod.kind_of?(Module) + raise RuntimeError.new("must only be extended by module") unless mod.kind_of?(::Module) end