mirror of
https://gitea.invidious.io/iv-org/shard-backtracer.cr.git
synced 2024-08-15 00:53:13 +00:00
Add Backtracer.configure
This commit is contained in:
parent
17efa84850
commit
742b723237
1 changed files with 4 additions and 0 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue