class Bullet::Registry::Base
Attributes
Public Class Methods
Public Instance Methods
Source
# File lib/bullet/registry/base.rb, line 28 def add(key, value) @registry[key] ||= Set.new if value.is_a? Array @registry[key] += value else @registry[key] << value end end
Source
# File lib/bullet/registry/base.rb, line 20 def delete(base) @registry.delete(base) end
Source
# File lib/bullet/registry/base.rb, line 16 def each(&block) @registry.each(&block) end
Source
# File lib/bullet/registry/base.rb, line 37 def include?(key, value) key?(key) && @registry[key].include?(value) end
Source
# File lib/bullet/registry/base.rb, line 24 def select(*args, &block) @registry.select(*args, &block) end