Class: AnsibleDocGenerator::DocGenerator::Interpolator
- Inherits:
-
Object
- Object
- AnsibleDocGenerator::DocGenerator::Interpolator
- Defined in:
- lib/ansible_doc_generator/doc_generator/interpolator.rb,
lib/ansible_doc_generator/doc_generator/interpolator/file_extractor.rb,
lib/ansible_doc_generator/doc_generator/interpolator/variable_extractor.rb
Defined Under Namespace
Classes: FileExtractor, VariableExtractor
Instance Attribute Summary collapse
-
#input ⇒ Object
readonly
Returns the value of attribute input.
-
#role_path ⇒ Object
readonly
Returns the value of attribute role_path.
-
#task ⇒ Object
readonly
Returns the value of attribute task.
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(input, task, role_path) ⇒ Interpolator
constructor
A new instance of Interpolator.
Constructor Details
#initialize(input, task, role_path) ⇒ Interpolator
Returns a new instance of Interpolator.
11 12 13 14 15 |
# File 'lib/ansible_doc_generator/doc_generator/interpolator.rb', line 11 def initialize input, task, role_path @input = input @task = task @role_path = role_path end |
Instance Attribute Details
#input ⇒ Object (readonly)
Returns the value of attribute input.
9 10 11 |
# File 'lib/ansible_doc_generator/doc_generator/interpolator.rb', line 9 def input @input end |
#role_path ⇒ Object (readonly)
Returns the value of attribute role_path.
9 10 11 |
# File 'lib/ansible_doc_generator/doc_generator/interpolator.rb', line 9 def role_path @role_path end |
#task ⇒ Object (readonly)
Returns the value of attribute task.
9 10 11 |
# File 'lib/ansible_doc_generator/doc_generator/interpolator.rb', line 9 def task @task end |
Instance Method Details
#call ⇒ Object
17 18 19 20 |
# File 'lib/ansible_doc_generator/doc_generator/interpolator.rb', line 17 def call variables_interpolated = Interpolator::VariableExtractor.new(input, task, role_path).call Interpolator::FileExtractor.new(variables_interpolated, role_path).call end |