Sha256: 97e07228f7c7e05005b5c25911b19472825099b5ce39781f7cd425cee4ae2029
Contents?: true
Size: 651 Bytes
Versions: 5
Compression:
Stored size: 651 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
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
gir_ffi-0.12.1 | lib/ffi-glib/strv.rb |
gir_ffi-0.12.0 | lib/ffi-glib/strv.rb |
gir_ffi-0.11.4 | lib/ffi-glib/strv.rb |
gir_ffi-0.11.3 | lib/ffi-glib/strv.rb |
gir_ffi-0.11.2 | lib/ffi-glib/strv.rb |