diff options
Diffstat (limited to 'ext/dl/lib/dl/closure.rb')
-rw-r--r-- | ext/dl/lib/dl/closure.rb | 19 |
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 eca941dfbc..0000000000 --- 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 |