Sha256: 54c6eca4def37f093dbb4b23379668a6f8e79e975200cc186308bc48eeb741ac

Contents?: true

Size: 365 Bytes

Versions: 2

Compression:

Stored size: 365 Bytes

Contents

# frozen_string_literal: true
module GObjectIntrospection
  # Wraps a GIVFuncInfo struct.
  # Represents a virtual function.
  class IVFuncInfo < ICallableInfo
    def flags
      Lib.g_vfunc_info_get_flags self
    end

    def throws?
      flags.fetch :throws
    end

    def invoker
      IFunctionInfo.wrap Lib.g_vfunc_info_get_invoker self
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
gir_ffi-0.11.1 lib/ffi-gobject_introspection/i_vfunc_info.rb
gir_ffi-0.11.0 lib/ffi-gobject_introspection/i_vfunc_info.rb