instance method
compiled_interpolation_body
Ruby on Rails 2.3.18
Since v2.3.18 Last seen in v2.3.18Signature
compiled_interpolation_body(str)
No documentation comment.
Parameters
-
strreq
Source
# File activesupport/lib/active_support/vendor/i18n-0.4.1/i18n/backend/interpolation_compiler.rb, line 49
def compiled_interpolation_body(str)
tokenize(str).map do |token|
(matchdata = token.match(INTERPOLATION_SYNTAX_PATTERN)) ? handle_interpolation_token(token, matchdata) : escape_plain_str(token)
end.join
end
Defined in activesupport/lib/active_support/vendor/i18n-0.4.1/i18n/backend/interpolation_compiler.rb line 49
· View on GitHub
· Improve this page
· Find usages on GitHub