Sha256: 98bf6ebb8622f9af7a2340f0734924a3ec1bf5980717c31aea080673767bf3f7
Contents?: true
Size: 1.01 KB
Versions: 4
Compression:
Stored size: 1.01 KB
Contents
# typed: strict # frozen_string_literal: true module Etwin module Hammerfest # A valid Hammerfest username class HammerfestUsername extend T::Helpers extend T::Sig final! protected sig(:final) { returns(String) } attr_reader :inner public sig(:final) { params(inner: String).void } def initialize(inner) @inner = T.let(inner.freeze, String) freeze end sig(:final) { params(other: BasicObject).returns(T::Boolean) } def ==(other) case other when HammerfestUsername @inner == other.inner else false end end sig(:final) { returns(Integer) } def hash @inner.hash end sig(:final) { returns(String) } def to_s @inner end sig(:final) { returns(String) } def as_json @inner end sig(:final) { returns(String) } def inspect "HammerfestUsername(#{@inner})" end end end end
Version data entries
4 entries across 4 versions & 1 rubygems