Class: GLib::SList
Overview
Overrides for GSList, GLib’s singly-linked list implementation.
Instance Attribute Summary
Attributes included from ListMethods
#element_type
Instance Method Summary
collapse
#==, #each, #head, included, #initialize, replace_method, #reset_typespec, #tail
Instance Method Details
#append(data) ⇒ Object
12
13
14
15
|
# File 'lib/ffi-glib/s_list.rb', line 12
def append(data)
store_pointer Lib.g_slist_append(self, element_ptr_for(data))
self
end
|
#prepend(data) ⇒ Object
17
18
19
20
|
# File 'lib/ffi-glib/s_list.rb', line 17
def prepend(data)
store_pointer Lib.g_slist_prepend(self, element_ptr_for(data))
self
end
|
#reverse ⇒ Object
22
23
24
25
|
# File 'lib/ffi-glib/s_list.rb', line 22
def reverse
store_pointer Lib.g_slist_reverse(self)
self
end
|