module GLib::ListMethods::ClassMethods
Public Instance Methods
Source
# File lib/ffi-glib/list_methods.rb, line 80 def from_enumerable(type, arr) arr.reduce(new(type)) { |lst, val| lst.prepend val }.reverse end
# File lib/ffi-glib/list_methods.rb, line 80 def from_enumerable(type, arr) arr.reduce(new(type)) { |lst, val| lst.prepend val }.reverse end