Sha256: 4f5a550b109c5d4c4f6aefe2c399107c90992e71031c872b0f0080c53713ea1a

Contents?: true

Size: 522 Bytes

Versions: 14

Compression:

Stored size: 522 Bytes

Contents

# typed: strict

module ModularizationStatistics
  class Tag < T::Struct
    extend T::Sig
    const :key, String
    const :value, String

    sig { returns(String) }
    def to_s
      "#{key}:#{value}"
    end

    sig { params(key: String, value: String).returns(Tag) }
    def self.for(key, value)
      new(
        key: key,
        value: value
      )
    end

    sig { params(other: Tag).returns(T::Boolean) }
    def ==(other)
      other.key == self.key &&
        other.value == self.value
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
modularization_statistics-2.0.2 lib/modularization_statistics/tag.rb
modularization_statistics-2.0.1 lib/modularization_statistics/tag.rb
modularization_statistics-2.0.0 lib/modularization_statistics/tag.rb
modularization_statistics-1.43.0 lib/modularization_statistics/tag.rb
modularization_statistics-1.42.0 lib/modularization_statistics/tag.rb
modularization_statistics-1.41.0 lib/modularization_statistics/tag.rb
modularization_statistics-1.40.0 lib/modularization_statistics/tag.rb
modularization_statistics-1.39.0 lib/modularization_statistics/tag.rb
modularization_statistics-1.38.0 lib/modularization_statistics/tag.rb
modularization_statistics-1.37.0 lib/modularization_statistics/tag.rb
modularization_statistics-1.36.0 lib/modularization_statistics/tag.rb
modularization_statistics-1.35.0 lib/modularization_statistics/tag.rb
modularization_statistics-1.34.0 lib/modularization_statistics/tag.rb
modularization_statistics-1.33.0 lib/modularization_statistics/tag.rb