summaryrefslogtreecommitdiff
path: root/ext/dl/lib/dl.rb
diff options
context:
space:
mode:
Diffstat (limited to 'ext/dl/lib/dl.rb')
-rw-r--r--ext/dl/lib/dl.rb12
1 files changed, 12 insertions, 0 deletions
diff --git a/ext/dl/lib/dl.rb b/ext/dl/lib/dl.rb
new file mode 100644
index 0000000000..168a18a55e
--- /dev/null
+++ b/ext/dl/lib/dl.rb
@@ -0,0 +1,12 @@
+require 'dl.so'
+
+begin
+ require 'fiddle'
+rescue LoadError
+end
+
+module DL
+ def self.fiddle?
+ Object.const_defined?(:Fiddle)
+ end
+end