class Translator::ExpressionSplitter
Public Instance Methods
map(tokens)
click to toggle source
# File lib/natural-date/translator/expression_splitter.rb, line 3 def map tokens tokens .lines .map { |l| l.strip } .join(';') .gsub(';', ' ; ') .split(language_bundle.separator_regexp) end