Class: GetText::Tools::Task

### Home Classes Methods

### In Files

- lib/gettext/tools/task.rb

### Parent

Object

### Methods

- ::new

### Included Modules

- GetText
- Rake::DSL

### Class/Module Index

Quicksearch

- GetText
- GetText::ClassInfo
- GetText::ErbParser
- GetText::GladeParser
- GetText::LocalePath
- GetText::MO
- GetText::MO::HeaderRev1
- GetText::MO::InvalidFormat
- GetText::NoboundTextDomainError
- GetText::PO
- GetText::PO::NonExistentEntryError
- GetText::POEntry
- GetText::POEntry::InvalidTypeError
- GetText::POEntry::NoMsgctxtError
- GetText::POEntry::NoMsgidError
- GetText::POEntry::NoMsgidPluralError
- GetText::POEntryForRubyParser
- GetText::POParser
- GetText::ParseError
- GetText::RubyParser
- GetText::TextDomain
- GetText::TextDomainGroup
- GetText::TextDomainManager
- GetText::Tools
- GetText::Tools::MsgInit
- GetText::Tools::MsgInit::ArgumentError
- GetText::Tools::MsgInit::Error
- GetText::Tools::MsgInit::ValidationError
- GetText::Tools::MsgMerge
- GetText::Tools::Task
- GetText::Tools::XGetText

No matching classes.

# GetText::Tools::Task

### Attributes

domain[RW]
files[RW]
locales[RW]
mo_base_directory[RW]
namespace_prefix[RW]
po_base_directory[RW]
xgettext_options[R]

@return [Array<String>] Command line options for extracting messages

    from sources.

@see GetText::Tools::XGetText @see `rxgettext --help`

### Public Class Methods

new(spec) click to toggle source

    # File lib/gettext/tools/task.rb, line 35
    def initialize(spec)
      @spec = spec
      @locales = []
      @po_base_directory = "po"
      @mo_base_directory = "."
      @files = target_files
      @domain = @spec.name
      @namespace_prefix = nil
      @xgettext_options = []
      yield(self) if block_given?
      @locales = detect_locales if @locales.empty?
      raise("must set locales: #{inspect}") if @locales.empty?
      define
    end

[Validate]

Generated with the Darkfish Rdoc Generator 2.