Class: GObjectIntrospection::GError
- Inherits:
-
Object
- Object
- GObjectIntrospection::GError
- Defined in:
- lib/ffi-gobject_introspection/g_error.rb
Overview
Wraps GLib’s GError struct.
Defined Under Namespace
Classes: Struct
Instance Method Summary collapse
-
#initialize(ptr) ⇒ GError
constructor
A new instance of GError.
- #message ⇒ Object
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
#message ⇒ Object
17 18 19 |
# File 'lib/ffi-gobject_introspection/g_error.rb', line 17 def @struct[:message] end |