Sha256: 904f4a20b9e8e00e8e40e336cf4dbf9180dea6528387b6315002aeb3c853157e
Contents?: true
Size: 424 Bytes
Versions: 4
Compression:
Stored size: 424 Bytes
Contents
module GLib module ContainerClassMethods def wrap typespec, ptr super(ptr).tap do |it| break if it.nil? it.reset_typespec typespec end end def from typespec, it case it when nil nil when FFI::Pointer wrap typespec, it when self it.reset_typespec typespec else from_enumerable typespec, it end end end end
Version data entries
4 entries across 4 versions & 1 rubygems