Sha256: 2179fdfcc92bfffef3a01f77092c0f5d587968fc4a48658cdb7dfa69508ca9f6
Contents?: true
Size: 650 Bytes
Versions: 2
Compression:
Stored size: 650 Bytes
Contents
# frozen_string_literal: true module GLib # 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. class Strv < GObjectIntrospection::Strv def ==(other) to_a == other.to_a end def self.from(it) case it when nil nil when FFI::Pointer wrap it when self it else from_enumerable it end end def self.from_enumerable(enum) wrap GirFFI::InPointer.from_array :utf8, enum end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
gir_ffi-0.11.1 | lib/ffi-glib/strv.rb |
gir_ffi-0.11.0 | lib/ffi-glib/strv.rb |