Class: Uniword::Docx::PartLoader::ChartLoader
- Inherits:
-
Object
- Object
- Uniword::Docx::PartLoader::ChartLoader
- Defined in:
- lib/uniword/docx/part_loader/chart_loader.rb
Overview
Loads chart parts (word/charts/chartN.xml) into the document's chart_parts collection, keyed by the id of the document relationship targeting each chart. Charts without a matching document relationship are skipped.
Instance Method Summary collapse
Instance Method Details
#load(context, definition) ⇒ void
This method returns an undefined value.
14 15 16 17 18 19 20 21 22 23 24 |
# File 'lib/uniword/docx/part_loader/chart_loader.rb', line 14 def load(context, definition) package = context.package return unless package.document_rels paths = context.matching_paths(definition) return if paths.empty? paths.each do |path| load_chart(context, definition, path) end end |