module Console::Warn
Redirect warnings to Console.warn.
Public Instance Methods
Source
# File vendor/bundle/ruby/3.4.0/gems/console-1.30.2/lib/console/warn.rb, line 15 def warn(message, **options) fiber = Fiber.current # We do this to be extra pendantic about avoiding infinite recursion. return super if fiber.console_warn begin fiber.console_warn = true message.chomp! Console::Interface.instance.warn(message, **options) ensure fiber.console_warn = false end end
Redirect warnings to {Console.warn}.
Calls superclass method