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