Add Backtracer.configure

This commit is contained in:
Sijawusz Pur Rahnama 2020-12-28 22:17:23 +01:00
parent 17efa84850
commit 742b723237

View file

@ -1,6 +1,10 @@
module Backtracer module Backtracer
class_getter(configuration) { Configuration.new } class_getter(configuration) { Configuration.new }
def self.configure : Nil
yield configuration
end
def self.parse(backtrace : Array(String) | String, **options) : Backtrace def self.parse(backtrace : Array(String) | String, **options) : Backtrace
Backtrace::Parser.parse(backtrace, **options) Backtrace::Parser.parse(backtrace, **options)
end end