Class: AnsibleDocGenerator::DocGenerator::RoleDocExtractor
- Inherits:
-
Object
- Object
- AnsibleDocGenerator::DocGenerator::RoleDocExtractor
- Defined in:
- lib/ansible_doc_generator/doc_generator/role_doc_extractor.rb
Constant Summary collapse
- META_KEYWORDS =
%w(metatitle)
Instance Attribute Summary collapse
-
#lang ⇒ Object
readonly
Returns the value of attribute lang.
-
#md_output ⇒ Object
Returns the value of attribute md_output.
-
#parsed_content ⇒ Object
Returns the value of attribute parsed_content.
-
#yml_path ⇒ Object
readonly
Returns the value of attribute yml_path.
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(yml_path, lang) ⇒ RoleDocExtractor
constructor
A new instance of RoleDocExtractor.
Constructor Details
#initialize(yml_path, lang) ⇒ RoleDocExtractor
Returns a new instance of RoleDocExtractor.
13 14 15 16 17 18 |
# File 'lib/ansible_doc_generator/doc_generator/role_doc_extractor.rb', line 13 def initialize yml_path, lang @yml_path = yml_path @lang = lang @parsed_content = {'meta' => []} @md_output = [] end |
Instance Attribute Details
#lang ⇒ Object (readonly)
Returns the value of attribute lang.
8 9 10 |
# File 'lib/ansible_doc_generator/doc_generator/role_doc_extractor.rb', line 8 def lang @lang end |
#md_output ⇒ Object
Returns the value of attribute md_output.
9 10 11 |
# File 'lib/ansible_doc_generator/doc_generator/role_doc_extractor.rb', line 9 def md_output @md_output end |
#parsed_content ⇒ Object
Returns the value of attribute parsed_content.
9 10 11 |
# File 'lib/ansible_doc_generator/doc_generator/role_doc_extractor.rb', line 9 def parsed_content @parsed_content end |
#yml_path ⇒ Object (readonly)
Returns the value of attribute yml_path.
8 9 10 |
# File 'lib/ansible_doc_generator/doc_generator/role_doc_extractor.rb', line 8 def yml_path @yml_path end |
Instance Method Details
#call ⇒ Object
20 21 22 |
# File 'lib/ansible_doc_generator/doc_generator/role_doc_extractor.rb', line 20 def call joined_output end |