class Bullet::Registry::Base

Experimental RBS support (using type sampling data from the type_fusion project).

# sig/bullet/registry/base.rbs

class Bullet::Registry::Base
  def []: (String key) -> Set
  def add: (String key, Symbol value) -> Set
  def include?: (String key, Symbol value) -> false
end

def [](key)

Experimental RBS support (using type sampling data from the type_fusion project).

def []: (String key) -> Set

This signature was generated using 3 samples from 1 application.

def [](key)
  @registry[key]
end

def add(key, value)

Experimental RBS support (using type sampling data from the type_fusion project).

def add: (String key, Symbol value) -> Set

This signature was generated using 14 samples from 1 application.

def add(key, value)
  @registry[key] ||= Set.new
  if value.is_a? Array
    @registry[key] += value
  else
    @registry[key] << value
  end
end

def delete(base)

def delete(base)
  @registry.delete(base)
end

def each(&block)

def each(&block)
  @registry.each(&block)
end

def include?(key, value)

Experimental RBS support (using type sampling data from the type_fusion project).

def include?: (String key, Symbol value) -> false

This signature was generated using 7 samples from 1 application.

def include?(key, value)
  !@registry[key].nil? && @registry[key].include?(value)
end

def initialize

def initialize
  @registry = {}
end

def select(*args, &block)

def select(*args, &block)
  @registry.select(*args, &block)
end