Class: Asciidoctor::Chart::BlockProcessor

Inherits:
Extensions::BlockProcessor
  • Object
show all
Defined in:
lib/asciidoctor/chart/block_processor.rb

Instance Method Summary collapse

Instance Method Details

#process(parent, reader, attrs) ⇒ Object



12
13
14
15
# File 'lib/asciidoctor/chart/block_processor.rb', line 12

def process parent, reader, attrs
  raw_data = PlainRubyCSV.parse reader.source
  Asciidoctor::Chart::ChartBlock.new parent, raw_data, attrs
end