/usr/lib/ruby/vendor_ruby/ffi-glib/strv.rb is in ruby-gir-ffi 0.9.0-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 | 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
|