summaryrefslogtreecommitdiff
path: root/lib/ffi
diff options
context:
space:
mode:
authorDaniel Evans <daniel.evans@airbnb.com>2021-08-12 15:59:46 -0700
committerBenoit Daloze <eregontp@gmail.com>2021-08-14 11:36:04 +0200
commit7c70b829ab422dceeaf472436f3a38fca6ef8f0b (patch)
treed64cfbd8f2ac8e5b84aab62cb11bde4ed0d7967b /lib/ffi
parent4d8fbd984ec2b1d22cae2788038ffd9b8ea76c86 (diff)
downloadffi-7c70b829ab422dceeaf472436f3a38fca6ef8f0b.tar.gz
Correct module lookup when including ffi-module
Diffstat (limited to 'lib/ffi')
-rw-r--r--lib/ffi/library.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ffi/library.rb b/lib/ffi/library.rb
index 1f8602b..43b2bfe 100644
--- a/lib/ffi/library.rb
+++ b/lib/ffi/library.rb
@@ -84,7 +84,7 @@ module FFI
# @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