Module: Middleman::AsciiDoc::DiagramProcessorExt

Defined in:
lib/middleman-asciidoc/diagram_ext.rb

Instance Method Summary collapse

Instance Method Details

#cache_dir(parent) ⇒ Object


3
4
5
6
7
8
9
# File 'lib/middleman-asciidoc/diagram_ext.rb', line 3

def cache_dir parent
  if ENV.key? 'MM_ROOT'
    File.join ENV['MM_ROOT'], '.asciidoctor/diagram'
  else
    super
  end
end