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.
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
#message ⇒ Object
16 17 18 |
# File 'lib/ffi-gobject_introspection/g_error.rb', line 16 def @struct[:message] end |