Module: Warning

Defined in:
lib/asciidoc-bib.rb

Overview

suppress some warning messages

Class Method Summary collapse

Class Method Details

.warn(message) ⇒ Object



10
11
12
13
14
15
# File 'lib/asciidoc-bib.rb', line 10

def self.warn(message)
  # Ignore the frozen string warning if it comes from the specific gem path
  return if message.include?("--debug-frozen-string-literal")
  
  super(message) # Otherwise, print as usual
end