class RDoc::Generator::POT::MessageExtractor

Extracts message from RDoc::Store

Public Class Methods

new(store) click to toggle source

Creates a message extractor for store.

# File lib/rdoc/generator/pot/message_extractor.rb, line 9
def initialize store
  @store = store
  @po = RDoc::Generator::POT::PO.new
end

Public Instance Methods

extract() click to toggle source

Extracts messages from store, stores them into RDoc::Generator::POT::PO and returns it.

# File lib/rdoc/generator/pot/message_extractor.rb, line 18
def extract
  @store.all_classes_and_modules.each do |klass|
    extract_from_klass(klass)
  end
  @po
end