Sha256: ceea07b2537a6c8e59f1820644b11b82ffe30e3622239e007fa826af951dc894
Contents?: true
Size: 760 Bytes
Versions: 1
Compression:
Stored size: 760 Bytes
Contents
# frozen_string_literal: true # Released under the MIT License. # Copyright, 2024, by Samuel Williams. module Async # Shims for the console gem, redirecting warnings and above to `Kernel#warn`. # # If you require this file, the `async` library will not depend on the `console` gem. # # That includes any gems that sit within the `Async` namespace. # # This is an experimental feature. module Console def self.debug(...) end def self.info(...) end def self.warn(*arguments, exception: nil, **options) if exception super(*arguments, exception.full_message, **options) else super(*arguments, **options) end end def self.error(...) self.warn(...) end def self.fatal(...) self.warn(...) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
async-2.19.0 | lib/async/console.rb |