Sha256: b17e7a0fb3a43add6409fb6a9f7c08042a466e86b0a8db13fda57959dc61caac
Contents?: true
Size: 403 Bytes
Versions: 2
Compression:
Stored size: 403 Bytes
Contents
# frozen_string_literal: true require 'gir_ffi/enum_like_base' module GirFFI # Base module for enums. module EnumBase include EnumLikeBase def native_type self::Enum.native_type end def to_native(*args) self::Enum.to_native(*args) end def from_native(*args) self::Enum.from_native(*args) end def [](arg) self::Enum[arg] end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
gir_ffi-0.11.1 | lib/gir_ffi/enum_base.rb |
gir_ffi-0.11.0 | lib/gir_ffi/enum_base.rb |