In Files

  • rdoc/generator/pot/message_extractor.rb

Parent

Methods

Class/Module Index [+]

Quicksearch

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 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 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
            

Commenting is here to help enhance the documentation. For example, code samples, or clarification of the documentation.

If you have questions about Ruby or the documentation, please post to one of the Ruby mailing lists. You will get better, faster, help that way.

If you wish to post a correction of the docs, please do so, but also file bug report so that it can be corrected for the next release. Thank you.

If you want to help improve the Ruby documentation, please visit Documenting-ruby.org.