Sha256: 73f2d0bfdcfed8e1abd6c0171e064924c9efe0d9df5e681621fa37c084705236
Contents?: true
Size: 522 Bytes
Versions: 4
Compression:
Stored size: 522 Bytes
Contents
# typed: strict # frozen_string_literal: true module Etwin module Hammerfest # A valid Hammerfest server class HammerfestServer < T::Enum extend T::Sig enums do HammerfestEs = new('hammerfest.es') HammerfestFr = new('hammerfest.fr') HfestNet = new('hfest.net') end sig { returns(String) } def to_s T.cast(serialize, String) end sig { returns(String) } def inspect "HammerfestServer(#{self})" end end end end
Version data entries
4 entries across 4 versions & 1 rubygems