Class: Metanorma::Mirror::Output::Pipeline
- Inherits:
-
Object
- Object
- Metanorma::Mirror::Output::Pipeline
- Defined in:
- lib/metanorma/mirror/output/pipeline.rb
Defined Under Namespace
Modules: Steps
Instance Attribute Summary collapse
-
#context ⇒ Object
readonly
Returns the value of attribute context.
-
#steps ⇒ Object
readonly
Returns the value of attribute steps.
Instance Method Summary collapse
-
#initialize(xml_path:, steps: nil, flavor: nil, title: nil, id_strategy: nil) ⇒ Pipeline
constructor
A new instance of Pipeline.
- #process ⇒ Object
Constructor Details
#initialize(xml_path:, steps: nil, flavor: nil, title: nil, id_strategy: nil) ⇒ Pipeline
Returns a new instance of Pipeline.
9 10 11 12 13 14 15 16 17 18 |
# File 'lib/metanorma/mirror/output/pipeline.rb', line 9 def initialize(xml_path:, steps: nil, flavor: nil, title: nil, id_strategy: nil) @steps = steps || [Steps::ParseXml, Steps::TransformMirror, Steps::AttachMetadata] @context = PipelineContext.new( xml_path: xml_path, flavor: flavor, title: title || File.basename(xml_path, ".*"), id_strategy: id_strategy, ) end |
Instance Attribute Details
#context ⇒ Object (readonly)
Returns the value of attribute context.
7 8 9 |
# File 'lib/metanorma/mirror/output/pipeline.rb', line 7 def context @context end |
#steps ⇒ Object (readonly)
Returns the value of attribute steps.
7 8 9 |
# File 'lib/metanorma/mirror/output/pipeline.rb', line 7 def steps @steps end |