module GLib::ListMethods::ClassMethods
Public Instance Methods
from_enumerable(type, arr)
click to toggle 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