Class: Packnga::ReferenceTask

Inherits:
Object
  • Object
show all
Includes:
ERB::Util, Rake::DSL
Defined in:
lib/packnga/reference-task.rb,
lib/packnga/reference-task.rb

Overview

This class creates reference tasks. They generate, translate and prepare to publish references.

Since:

  • 0.9.0

Instance Attribute Summary collapse

Instance Attribute Details

#base_dirString

This attribute is used to set path of base directory of document.

Returns:

  • (String)

    path of base directory of document

Since:

  • 0.9.0



36
37
38
# File 'lib/packnga/reference-task.rb', line 36

def base_dir
  @base_dir
end

#original_languageString

This attribute is used to set the language you wrote original document. Its default value is “en” (English).

Returns:

  • (String)

    language you used to write document

See Also:

Since:

  • 0.9.6



57
58
59
# File 'lib/packnga/reference-task.rb', line 57

def original_language
  @original_language
end

#readmeString

This attribute is used to set README file.

Returns:

  • (String)

    path of readme file

Since:

  • 0.9.0



40
41
42
# File 'lib/packnga/reference-task.rb', line 40

def readme
  @readme
end

#source_filesArray<String>

This attribute is used to set source files for document.

Returns:

  • (Array<String>)

    target source files

Since:

  • 0.9.0



44
45
46
# File 'lib/packnga/reference-task.rb', line 44

def source_files
  @source_files
end

#text_filesArray<String>

This attribute is used to set text files for document.

Returns:

  • (Array<String>)

    target text files

Since:

  • 0.9.0



48
49
50
# File 'lib/packnga/reference-task.rb', line 48

def text_files
  @text_files
end

#translate_languagesArray<String>

This attribute is used to set languages for translated document. If original_language isn’t English, its default value is one. Otherwise, it is not specified.



70
71
72
# File 'lib/packnga/reference-task.rb', line 70

def translate_languages
  @translate_languages
end