# File lib/gettext_i18n_rails/ruby_gettext_extractor.rb, line 12 def parse_string(content, file, targets=[]) # file is just for information in error messages parser = if RUBY_VERSION =~ %r^1\.8/ Extractor18.new(file, targets) else Extractor19.new(file, targets) end parser.run(content) end