Skip to content

Commit

Permalink
Correct module lookup when including ffi-module
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Evans authored and eregon committed Aug 14, 2021
1 parent 4d8fbd9 commit 7c70b82
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/ffi/library.rb
Expand Up @@ -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


Expand Down

0 comments on commit 7c70b82

Please sign in to comment.