class String
Public Instance Methods
tml_translated()
click to toggle source
marks the string as translated and safe at the same time
# File lib/tml_rails/core/string.rb, line 35 def tml_translated return self if frozen? @tml_translated = true self.html_safe end
tml_translated?()
click to toggle source
indicates whether the string has been translated or not
# File lib/tml_rails/core/string.rb, line 42 def tml_translated? @tml_translated end