instance method
tokenize
Ruby on Rails 2.3.18
Since v2.3.18 Last seen in v2.3.18Signature
tokenize(str)
tokenize(“foo %{bar} baz %%{buz}”) # => [“foo ”, “%{bar}”, “ baz ”, “%%{buz}”]
Parameters
-
strreq
Source
# File activesupport/lib/active_support/vendor/i18n-0.4.1/i18n/backend/interpolation_compiler.rb, line 45
def tokenize(str)
str.split(TOKENIZER)
end
Defined in activesupport/lib/active_support/vendor/i18n-0.4.1/i18n/backend/interpolation_compiler.rb line 45
· View on GitHub
· Improve this page
· Find usages on GitHub