Sha256: 92c84504d7fd2083c27f5d38263318c8bd25733d113e2bb06c47523a2ac66eba

Contents?: true

Size: 391 Bytes

Versions: 2

Compression:

Stored size: 391 Bytes

Contents

# frozen_string_literal: true
require 'gir_ffi/registered_type_base'

module GirFFI
  # Base module for modules representing GLib interfaces.
  module InterfaceBase
    include RegisteredTypeBase

    def setup_instance_method(name)
      gir_ffi_builder.setup_instance_method name
    end

    def wrap(ptr)
      ptr.to_object
    end

    def to_ffi_type
      :pointer
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
gir_ffi-0.9.4 lib/gir_ffi/interface_base.rb
gir_ffi-0.9.3 lib/gir_ffi/interface_base.rb