Sha256: 6f3345ecf5ce6d6db1390837c8e3bd5b4f2f08f2787b6e429ec139bba6abecb7
Contents?: true
Size: 349 Bytes
Versions: 6
Compression:
Stored size: 349 Bytes
Contents
# A class that let's you translate strings with # the language and to_language params even if you happen to # freeze them. Aliased to TString. class TranslatableString < String def initialize(str, language: nil, to_language: nil) super str self.language = language self.to_language = to_language end end TString = TranslatableString
Version data entries
6 entries across 6 versions & 1 rubygems