Class: Barby::SvgOutputter

Inherits:
Object
  • Object
show all
Defined in:
lib/asciidoctor-diagram/barcode/svg_outputter.rb

Instance Method Summary collapse

Instance Method Details

#bars_to_path(opts = {}) ⇒ Object

Monkey patch to fix foreground color in SVG output



6
7
8
9
10
# File 'lib/asciidoctor-diagram/barcode/svg_outputter.rb', line 6

def bars_to_path(opts={})
  with_options opts do
    %Q|<path stroke="#{foreground}" stroke-width="#{xdim}" d="#{bars_to_path_data(opts)}" />|
  end
end