Class: GObjectIntrospection::GError

Inherits:
Object
  • Object
show all
Defined in:
lib/ffi-gobject_introspection/g_error.rb

Overview

Wraps GLib’s GError struct.

Defined Under Namespace

Classes: Struct

Instance Method Summary collapse

Constructor Details

#initialize(ptr) ⇒ GError

Returns a new instance of GError.



11
12
13
# File 'lib/ffi-gobject_introspection/g_error.rb', line 11

def initialize ptr
  @struct = self.class::Struct.new(ptr)
end

Instance Method Details

#messageObject



15
16
17
# File 'lib/ffi-gobject_introspection/g_error.rb', line 15

def message
  @struct[:message]
end