Sha256: fa1cc3a1c16b25b9cdf20ce99d6d6bc83739220e93fed73d9adff3759436947b

Contents?: true

Size: 451 Bytes

Versions: 6

Compression:

Stored size: 451 Bytes

Contents

module GLib
  # Extra methods for GLib::Strv. The bulk is defined in `gir_ffi-base/glib/strv.rb`
  class 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

6 entries across 6 versions & 1 rubygems

Version Path
gir_ffi-0.7.10 lib/ffi-glib/strv.rb
gir_ffi-0.7.9 lib/ffi-glib/strv.rb
gir_ffi-0.7.8 lib/ffi-glib/strv.rb
gir_ffi-0.7.7 lib/ffi-glib/strv.rb
gir_ffi-0.7.6 lib/ffi-glib/strv.rb
gir_ffi-0.7.5 lib/ffi-glib/strv.rb