Sha256: 522ddc0ff43d4968c616d45715a887b6b512845f15bea7f8f6644a81c2f7a316

Contents?: true

Size: 322 Bytes

Versions: 3

Compression:

Stored size: 322 Bytes

Contents

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

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

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
gir_ffi-0.7.7 lib/gir_ffi/builders/closure_convertor.rb
gir_ffi-0.7.6 lib/gir_ffi/builders/closure_convertor.rb
gir_ffi-0.7.5 lib/gir_ffi/builders/closure_convertor.rb