Class: Metanorma::Mirror::Output::PipelineContext
- Inherits:
-
Object
- Object
- Metanorma::Mirror::Output::PipelineContext
- Defined in:
- lib/metanorma/mirror/output/pipeline_context.rb
Instance Attribute Summary collapse
-
#content ⇒ Object
Returns the value of attribute content.
-
#flavor ⇒ Object
readonly
Returns the value of attribute flavor.
-
#id_strategy ⇒ Object
readonly
Returns the value of attribute id_strategy.
-
#meta ⇒ Object
Returns the value of attribute meta.
-
#parsed ⇒ Object
Returns the value of attribute parsed.
-
#title ⇒ Object
readonly
Returns the value of attribute title.
-
#xml_path ⇒ Object
readonly
Returns the value of attribute xml_path.
Instance Method Summary collapse
-
#initialize(xml_path:, flavor: nil, title: nil, id_strategy: nil) ⇒ PipelineContext
constructor
A new instance of PipelineContext.
Constructor Details
#initialize(xml_path:, flavor: nil, title: nil, id_strategy: nil) ⇒ PipelineContext
Returns a new instance of PipelineContext.
10 11 12 13 14 15 16 17 18 |
# File 'lib/metanorma/mirror/output/pipeline_context.rb', line 10 def initialize(xml_path:, flavor: nil, title: nil, id_strategy: nil) @xml_path = xml_path @flavor = flavor @title = title @id_strategy = id_strategy @parsed = nil @content = nil @meta = {} end |
Instance Attribute Details
#content ⇒ Object
Returns the value of attribute content.
8 9 10 |
# File 'lib/metanorma/mirror/output/pipeline_context.rb', line 8 def content @content end |
#flavor ⇒ Object (readonly)
Returns the value of attribute flavor.
7 8 9 |
# File 'lib/metanorma/mirror/output/pipeline_context.rb', line 7 def flavor @flavor end |
#id_strategy ⇒ Object (readonly)
Returns the value of attribute id_strategy.
7 8 9 |
# File 'lib/metanorma/mirror/output/pipeline_context.rb', line 7 def id_strategy @id_strategy end |
#meta ⇒ Object
Returns the value of attribute meta.
8 9 10 |
# File 'lib/metanorma/mirror/output/pipeline_context.rb', line 8 def @meta end |
#parsed ⇒ Object
Returns the value of attribute parsed.
8 9 10 |
# File 'lib/metanorma/mirror/output/pipeline_context.rb', line 8 def parsed @parsed end |
#title ⇒ Object (readonly)
Returns the value of attribute title.
7 8 9 |
# File 'lib/metanorma/mirror/output/pipeline_context.rb', line 7 def title @title end |
#xml_path ⇒ Object (readonly)
Returns the value of attribute xml_path.
7 8 9 |
# File 'lib/metanorma/mirror/output/pipeline_context.rb', line 7 def xml_path @xml_path end |