class GLib::Strv
Represents a null-terminated array of strings. GLib
uses this construction, but does not provide any actual functions for this class.
The implementation is mainly inherited from GObjectIntrospection::Strv
.
Public Class Methods
from(obj)
click to toggle source
# File lib/ffi-glib/strv.rb, line 13 def self.from(obj) case obj when nil nil when FFI::Pointer wrap obj when self obj else from_enumerable obj end end
from_enumerable(enum)
click to toggle source
# File lib/ffi-glib/strv.rb, line 26 def self.from_enumerable(enum) wrap GirFFI::InPointer.from_array :utf8, enum end
Public Instance Methods
==(other)
click to toggle source
# File lib/ffi-glib/strv.rb, line 9 def ==(other) to_a == other.to_a end