Class: Barby::SvgOutputter
- Inherits:
-
Object
- Object
- Barby::SvgOutputter
- Defined in:
- lib/asciidoctor-diagram/barcode/svg_outputter.rb
Instance Method Summary collapse
-
#bars_to_path(opts = {}) ⇒ Object
Monkey patch to fix foreground color in SVG output.
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 (opts={}) opts do %Q|<path stroke="#{foreground}" stroke-width="#{xdim}" d="#{(opts)}" />| end end |