Sha256: 634c678c6e9d7b7cb45c573e1e7c99ff0e9b08c62f3e432667ce33b752404706
Contents?: true
Size: 330 Bytes
Versions: 3
Compression:
Stored size: 330 Bytes
Contents
module Asciidoctor def self.debug(*args) puts *args if self.show_debug_output? end def self.show_debug_output? ENV['DEBUG'] == 'true' && ENV['SUPPRESS_DEBUG'] != 'true' end def self.puts_indented(level, *args) thing = " "*level*2 args.each do |arg| self.debug "#{thing}#{arg}" end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
asciidoctor-0.0.4 | lib/asciidoctor/debug.rb |
asciidoctor-0.0.3 | lib/asciidoctor/debug.rb |
asciidoctor-0.0.2 | lib/asciidoctor/debug.rb |