summaryrefslogtreecommitdiff
path: root/ext/dl/lib/dl/closure.rb
diff options
context:
space:
mode:
Diffstat (limited to 'ext/dl/lib/dl/closure.rb')
-rw-r--r--ext/dl/lib/dl/closure.rb19
1 files changed, 0 insertions, 19 deletions
diff --git a/ext/dl/lib/dl/closure.rb b/ext/dl/lib/dl/closure.rb
deleted file mode 100644
index eca941dfbc2..00000000000
--- a/ext/dl/lib/dl/closure.rb
+++ /dev/null
@@ -1,19 +0,0 @@
-require 'dl'
-
-module DL
- class Closure
- attr_reader :ctype
- attr_reader :args
-
- class BlockCaller < DL::Closure
- def initialize ctype, args, abi = DL::Function::DEFAULT, &block
- super(ctype, args, abi)
- @block = block
- end
-
- def call *args
- @block.call(*args)
- end
- end
- end
-end