frozen_string_literal: false

Extracts message from RDoc::Store

Methods
E
N
Class Public methods
new(store)

Creates a message extractor for store.

# File lib/rdoc/generator/pot/message_extractor.rb, line 10
def initialize store
  @store = store
  @po = RDoc::Generator::POT::PO.new
end
Instance Public methods
extract()

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

# 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