method

extract_text

ruby latest stable - Class: RDoc::Generator::POT::MessageExtractor

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v2_2_9) is shown here.

extract_text(text, comment, location = nil)
private

No documentation available.

# File lib/rdoc/generator/pot/message_extractor.rb, line 50
  def extract_text text, comment, location = nil
    return if text.nil?

    options = {
      :extracted_comment => comment,
      :references => [location].compact,
    }
    i18n_text = RDoc::I18n::Text.new(text)
    i18n_text.extract_messages do |part|
      @po.add(entry(part[:paragraph], options))
    end
  end