Sha256: 8b7546415fa8844682f29999749856ec02e9c037e25cc00a9ce63cafefc3adef

Contents?: true

Size: 358 Bytes

Versions: 7

Compression:

Stored size: 358 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_ffitype
      :pointer
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
gir_ffi-0.7.8 lib/gir_ffi/interface_base.rb
gir_ffi-0.7.7 lib/gir_ffi/interface_base.rb
gir_ffi-0.7.6 lib/gir_ffi/interface_base.rb
gir_ffi-0.7.5 lib/gir_ffi/interface_base.rb
gir_ffi-0.7.4 lib/gir_ffi/interface_base.rb
gir_ffi-0.7.3 lib/gir_ffi/interface_base.rb
gir_ffi-0.7.2 lib/gir_ffi/interface_base.rb