Class: RDoc::Generator::POT::MessageExtractor
- Inherits:
-
Object
- Object
- RDoc::Generator::POT::MessageExtractor
- Defined in:
- lib/rdoc/generator/pot/message_extractor.rb
Overview
Extracts message from RDoc::Store
Instance Method Summary collapse
-
#extract ⇒ Object
Extracts messages from
store
, stores them into RDoc::Generator::POT::PO and returns it. -
#initialize(store) ⇒ MessageExtractor
constructor
Creates a message extractor for
store
.
Constructor Details
#initialize(store) ⇒ MessageExtractor
Creates a message extractor for store
.
10 11 12 13 |
# File 'lib/rdoc/generator/pot/message_extractor.rb', line 10 def initialize store @store = store @po = RDoc::Generator::POT::PO.new end |
Instance Method Details
#extract ⇒ Object
Extracts messages from store
, stores them into RDoc::Generator::POT::PO and returns it.
19 20 21 22 23 24 |
# File 'lib/rdoc/generator/pot/message_extractor.rb', line 19 def extract @store.all_classes_and_modules.each do |klass| extract_from_klass(klass) end @po end |