Sha256: 9de05a94670ac09ac10c1fcfeefb84fa116326efbe47f60a2bbab0b4645cfd41
Contents?: true
Size: 1.17 KB
Versions: 1136
Compression:
Stored size: 1.17 KB
Contents
module FFI class Enums def initialize: () -> void def <<: (Enum enum) -> void def __map_symbol: (Symbol symbol) -> Integer? def find: (Symbol query) -> Enum end class Enum include DataConverter[Integer, Symbol | Integer, untyped] attr_reader native_type: Type attr_reader tag: Symbol? def initialize: (Enumerable[Symbol | Integer], ?Symbol? tag, *untyped) -> void | (Type native_type, Enumerable[Symbol | Integer], ?Symbol? tag, *untyped) -> void def []: (Symbol query) -> Integer? | (Integer query) -> Symbol? def symbol_map: () -> Hash[Symbol, Integer] alias to_h symbol_map alias to_hash symbol_map def symbols: () -> Array[Symbol] def to_native: (Symbol | int value, untyped ctx) -> Integer end class Bitmask < Enum def initialize: ... def []: (*Symbol query) -> Integer | (Array[Symbol] query) -> Integer | (*Integer query) -> Array[Symbol] | (Array[Integer] query) -> Array[Symbol] def from_native: (Integer, untyped ctx) -> Array[Symbol | Integer] def to_native: (Array[Symbol | int] value, untyped ctx) -> Integer | ... end end
Version data entries
1,136 entries across 1,136 versions & 14 rubygems