Sha256: 5f126afcb667e556d12ad8ac5b6ed411381d5964026126e7a0ebbf64ba78531a
Contents?: true
Size: 351 Bytes
Versions: 2
Compression:
Stored size: 351 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) replace str self.language = language self.to_language = to_language end end TString = TranslatableString
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
translate_self-0.6.0 | lib/translate_self/translatable_string.rb |
translate_self-0.5.0 | lib/translate_self/translatable_string.rb |