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

Version Path
cybrid_api_id_ruby-0.122.47 vendor/bundle/ruby/3.3.0/gems/ffi-1.17.0-x86_64-linux-gnu/sig/ffi/enum.rbs
cybrid_api_organization_ruby-0.122.47 vendor/bundle/ruby/3.3.0/gems/ffi-1.17.0-x86_64-linux-gnu/sig/ffi/enum.rbs
cybrid_api_id_ruby-0.122.46 vendor/bundle/ruby/3.3.0/gems/ffi-1.17.0-x86_64-linux-gnu/sig/ffi/enum.rbs
cybrid_api_bank_ruby-0.122.46 vendor/bundle/ruby/3.3.0/gems/ffi-1.17.0-x86_64-linux-gnu/sig/ffi/enum.rbs
cybrid_api_organization_ruby-0.122.46 vendor/bundle/ruby/3.3.0/gems/ffi-1.17.0-x86_64-linux-gnu/sig/ffi/enum.rbs
cybrid_api_organization_ruby-0.122.45 vendor/bundle/ruby/3.3.0/gems/ffi-1.17.0-x86_64-linux-gnu/sig/ffi/enum.rbs
cybrid_api_id_ruby-0.122.45 vendor/bundle/ruby/3.3.0/gems/ffi-1.17.0-x86_64-linux-gnu/sig/ffi/enum.rbs
cybrid_api_bank_ruby-0.122.45 vendor/bundle/ruby/3.3.0/gems/ffi-1.17.0-x86_64-linux-gnu/sig/ffi/enum.rbs
cybrid_api_bank_ruby-0.122.44 vendor/bundle/ruby/3.3.0/gems/ffi-1.17.0-x86_64-linux-gnu/sig/ffi/enum.rbs
cybrid_api_id_ruby-0.122.44 vendor/bundle/ruby/3.3.0/gems/ffi-1.17.0-x86_64-linux-gnu/sig/ffi/enum.rbs
cybrid_api_organization_ruby-0.122.44 vendor/bundle/ruby/3.3.0/gems/ffi-1.17.0-x86_64-linux-gnu/sig/ffi/enum.rbs
cybrid_api_bank_ruby-0.122.43 vendor/bundle/ruby/3.3.0/gems/ffi-1.17.0-x86_64-linux-gnu/sig/ffi/enum.rbs
cybrid_api_organization_ruby-0.122.43 vendor/bundle/ruby/3.3.0/gems/ffi-1.17.0-x86_64-linux-gnu/sig/ffi/enum.rbs
cybrid_api_id_ruby-0.122.43 vendor/bundle/ruby/3.3.0/gems/ffi-1.17.0-x86_64-linux-gnu/sig/ffi/enum.rbs
cybrid_api_bank_ruby-0.122.42 vendor/bundle/ruby/3.3.0/gems/ffi-1.17.0-x86_64-linux-gnu/sig/ffi/enum.rbs
cybrid_api_id_ruby-0.122.42 vendor/bundle/ruby/3.3.0/gems/ffi-1.17.0-x86_64-linux-gnu/sig/ffi/enum.rbs
cybrid_api_organization_ruby-0.122.42 vendor/bundle/ruby/3.3.0/gems/ffi-1.17.0-x86_64-linux-gnu/sig/ffi/enum.rbs
ory-client-1.15.10 vendor/bundle/ruby/3.1.0/gems/ffi-1.17.0/sig/ffi/enum.rbs
cybrid_api_organization_ruby-0.122.41 vendor/bundle/ruby/3.3.0/gems/ffi-1.17.0-x86_64-linux-gnu/sig/ffi/enum.rbs
cybrid_api_bank_ruby-0.122.41 vendor/bundle/ruby/3.3.0/gems/ffi-1.17.0-x86_64-linux-gnu/sig/ffi/enum.rbs