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.



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

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

Instance Method Details

#messageObject



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

def message
  @struct[:message]
end