Sha256: d7d5dd261845b8dfeb865b5372b402e482433521fcd9bea4944900b3d4cc2c9c

Contents?: true

Size: 361 Bytes

Versions: 10

Compression:

Stored size: 361 Bytes

Contents

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

10 entries across 10 versions & 1 rubygems

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