Class: Packnga::ReferenceTask
- Inherits:
-
Object
- Object
- Packnga::ReferenceTask
- 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.
Instance Attribute Summary collapse
-
#base_dir ⇒ String
This attribute is used to set path of base directory of document.
-
#original_language ⇒ String
This attribute is used to set the language you wrote original document.
-
#readme ⇒ String
This attribute is used to set README file.
-
#source_files ⇒ Array<String>
This attribute is used to set source files for document.
-
#text_files ⇒ Array<String>
This attribute is used to set text files for document.
-
#translate_languages ⇒ Array<String>
This attribute is used to set languages for translated document.
Instance Attribute Details
#base_dir ⇒ String
This attribute is used to set path of base directory of document.
36 37 38 |
# File 'lib/packnga/reference-task.rb', line 36 def base_dir @base_dir end |
#original_language ⇒ String
This attribute is used to set the language you wrote original document. Its default value is “en” (English).
57 58 59 |
# File 'lib/packnga/reference-task.rb', line 57 def original_language @original_language end |
#readme ⇒ String
This attribute is used to set README file.
40 41 42 |
# File 'lib/packnga/reference-task.rb', line 40 def readme @readme end |
#source_files ⇒ Array<String>
This attribute is used to set source files for document.
44 45 46 |
# File 'lib/packnga/reference-task.rb', line 44 def source_files @source_files end |
#text_files ⇒ Array<String>
This attribute is used to set text files for document.
48 49 50 |
# File 'lib/packnga/reference-task.rb', line 48 def text_files @text_files end |
#translate_languages ⇒ Array<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 |