diff options
author | Daniel Evans <daniel.evans@airbnb.com> | 2021-08-12 15:59:46 -0700 |
---|---|---|
committer | Benoit Daloze <eregontp@gmail.com> | 2021-08-14 11:36:04 +0200 |
commit | 7c70b829ab422dceeaf472436f3a38fca6ef8f0b (patch) | |
tree | d64cfbd8f2ac8e5b84aab62cb11bde4ed0d7967b /lib/ffi | |
parent | 4d8fbd984ec2b1d22cae2788038ffd9b8ea76c86 (diff) | |
download | ffi-7c70b829ab422dceeaf472436f3a38fca6ef8f0b.tar.gz |
Correct module lookup when including ffi-module
Diffstat (limited to 'lib/ffi')
-rw-r--r-- | lib/ffi/library.rb | 2 |
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 |