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.



13
14
15
# File 'lib/ffi-gobject_introspection/g_error.rb', line 13

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

Instance Method Details

#messageObject



17
18
19
# File 'lib/ffi-gobject_introspection/g_error.rb', line 17

def message
  @struct[:message]
end