Class: Jekyll::Diagrams::NomnomlBlock
- Defined in:
- lib/jekyll-diagrams/nomnoml.rb
Instance Method Summary collapse
Methods inherited from Block
#read_config, #render, #wrap_class
Methods included from Util
#config_for, #diagrams_config, #vendor_path
Methods included from Renderer
#render_with_command, #render_with_stdin, #render_with_stdin_stdout, #render_with_stdout, #render_with_tempfile
Instance Method Details
#build_command(config) ⇒ Object
12 13 14 |
# File 'lib/jekyll-diagrams/nomnoml.rb', line 12 def build_command(config) 'nomnoml' end |
#render_svg(code, config) ⇒ Object
4 5 6 7 8 9 10 |
# File 'lib/jekyll-diagrams/nomnoml.rb', line 4 def render_svg(code, config) command = build_command(config) render_with_stdout(command, code) do |command, input| "#{command} #{input}" end end |