Module: RubyGettextExtractor

### Home Classes Methods

### In Files

- lib/gettext_i18n_rails/ruby_gettext_extractor.rb

### Namespace

- MODULE RubyGettextExtractor::ExtractorMethods
- CLASS RubyGettextExtractor::Extractor18
- CLASS RubyGettextExtractor::Extractor19

### Methods

- #parse_string

### Class/Module Index

Quicksearch

- GettextI18nRails
- GettextI18nRails::Backend
- GettextI18nRails::BaseParser
- GettextI18nRails::GettextHooks
- GettextI18nRails::HamlParser
- GettextI18nRails::HtmlSafeTranslations
- GettextI18nRails::ModelAttributesFinder
- GettextI18nRails::Railtie
- GettextI18nRails::SlimParser
- RubyGettextExtractor
- RubyGettextExtractor::Extractor18
- RubyGettextExtractor::Extractor19
- RubyGettextExtractor::ExtractorMethods
- ActionController
- ActionController::Base
- ActiveModel
- ActiveModel::Translation
- ActiveRecord
- ActiveRecord::Base
- I18n
- I18n::Config
- Object
- String

No matching classes.

# RubyGettextExtractor

### Public Instance Methods

parse_string(content, file, targets=[]) click to toggle source

    # 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 =~ /^1\.8/
        Extractor18.new(file, targets)
      else
        Extractor19.new(file, targets)
      end
      parser.run(content)
    end

[Validate]

Generated with the Darkfish Rdoc Generator 2.