class TranslatableString
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
.
Public Class Methods
new(str, language: nil, to_language: nil)
click to toggle source
Calls superclass method
# File lib/translate_self/translatable_string.rb, line 5 def initialize(str, language: nil, to_language: nil) super str self.language = language self.to_language = to_language end