Sha256: 799604bcb7005de88cd29ef1070d24204bcafc9401e5b851299c44eb1ce82e7e

Contents?: true

Size: 387 Bytes

Versions: 10

Compression:

Stored size: 387 Bytes

Contents

module GirFFI
  module Builders
    # Builder that generates code to convert closure arguments ('user data')
    # from C to Ruby. Used by argument builders.
    class ClosureConvertor
      def initialize(argument_name)
        @argument_name = argument_name
      end

      def conversion
        "GirFFI::ArgHelper::OBJECT_STORE.fetch(#{@argument_name})"
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
gir_ffi-0.9.2 lib/gir_ffi/builders/closure_convertor.rb
gir_ffi-0.9.1 lib/gir_ffi/builders/closure_convertor.rb
gir_ffi-0.9.0 lib/gir_ffi/builders/closure_convertor.rb
gir_ffi-0.8.6 lib/gir_ffi/builders/closure_convertor.rb
gir_ffi-0.8.5 lib/gir_ffi/builders/closure_convertor.rb
gir_ffi-0.8.4 lib/gir_ffi/builders/closure_convertor.rb
gir_ffi-0.8.3 lib/gir_ffi/builders/closure_convertor.rb
gir_ffi-0.8.2 lib/gir_ffi/builders/closure_convertor.rb
gir_ffi-0.8.1 lib/gir_ffi/builders/closure_convertor.rb
gir_ffi-0.8.0 lib/gir_ffi/builders/closure_convertor.rb