Class: GLib::List
Overview
Overrides for GList, GLib’s doubly 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/list.rb', line 12
def append(data)
store_pointer Lib.g_list_append(self, element_ptr_for(data))
self
end
|
#prepend(data) ⇒ Object
17
18
19
20
|
# File 'lib/ffi-glib/list.rb', line 17
def prepend(data)
store_pointer Lib.g_list_prepend(self, element_ptr_for(data))
self
end
|
#reverse ⇒ Object
22
23
24
25
|
# File 'lib/ffi-glib/list.rb', line 22
def reverse
store_pointer Lib.g_list_reverse(self)
self
end
|