Sha256: 3a2b1a1b0a7204adf57752b9ecc2fab300857cf3eed7f21d1b00856695f7b71e

Contents?: true

Size: 363 Bytes

Versions: 7

Compression:

Stored size: 363 Bytes

Contents

# frozen_string_literal: true

module IsThisUsed
  class Registry
    include Singleton

    attr_accessor :potential_crufts

    def initialize
      @potential_crufts = []
    end

    def <<(potential_cruft)
      potential_crufts << potential_cruft
    end

    def include?(potential_cruft)
      potential_crufts.include?(potential_cruft)
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
is_this_used-0.1.14 lib/is_this_used/registry.rb
is_this_used-0.1.13 lib/is_this_used/registry.rb
is_this_used-0.1.12 lib/is_this_used/registry.rb
is_this_used-0.1.11 lib/is_this_used/registry.rb
is_this_used-0.1.10 lib/is_this_used/registry.rb
is_this_used-0.1.9 lib/is_this_used/registry.rb
is_this_used-0.1.8 lib/is_this_used/registry.rb