Class: Docbook::Output::PipelineContext

Inherits:
Struct
  • Object
show all
Defined in:
lib/docbook/output/pipeline/context.rb

Overview

Shared state passed between pipeline steps.

Carries configuration and the parsed document so steps can communicate without coupling to each other.

Usage: context = PipelineContext.new(xml_path: "book.xml") context.parsed # => set by ParseXml step

Instance Attribute Summary collapse

Instance Attribute Details

#image_search_dirsObject

Returns the value of attribute image_search_dirs

Returns:

  • (Object)

    the current value of image_search_dirs



14
15
16
# File 'lib/docbook/output/pipeline/context.rb', line 14

def image_search_dirs
  @image_search_dirs
end

#image_strategyObject

Returns the value of attribute image_strategy

Returns:

  • (Object)

    the current value of image_strategy



14
15
16
# File 'lib/docbook/output/pipeline/context.rb', line 14

def image_strategy
  @image_strategy
end

#parsedObject

Returns the value of attribute parsed

Returns:

  • (Object)

    the current value of parsed



14
15
16
# File 'lib/docbook/output/pipeline/context.rb', line 14

def parsed
  @parsed
end

#sort_glossaryObject

Returns the value of attribute sort_glossary

Returns:

  • (Object)

    the current value of sort_glossary



14
15
16
# File 'lib/docbook/output/pipeline/context.rb', line 14

def sort_glossary
  @sort_glossary
end

#titleObject

Returns the value of attribute title

Returns:

  • (Object)

    the current value of title



14
15
16
# File 'lib/docbook/output/pipeline/context.rb', line 14

def title
  @title
end

#xml_pathObject

Returns the value of attribute xml_path

Returns:

  • (Object)

    the current value of xml_path



14
15
16
# File 'lib/docbook/output/pipeline/context.rb', line 14

def xml_path
  @xml_path
end