Class: RDoc::Generator::POT::MessageExtractor

Inherits:
Object
  • Object
show all
Defined in:
lib/rdoc/generator/pot/message_extractor.rb

Overview

Extracts message from RDoc::Store

Instance Method Summary collapse

Constructor Details

#initialize(store) ⇒ MessageExtractor

Creates a message extractor for store.



13
14
15
16
# File 'lib/rdoc/generator/pot/message_extractor.rb', line 13

def initialize(store)
  @store = store
  @po = Generator::POT::PO.new
end

Instance Method Details

#extract ⇒ Object

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



22
23
24
25
26
27
# File 'lib/rdoc/generator/pot/message_extractor.rb', line 22

def extract
  @store.all_classes_and_modules.each do |klass|
    extract_from_klass(klass)
  end
  @po
end