Module StructuredWarnings::ClassMethods
In: lib/structured_warnings.rb

If you require ‘test/unit‘ after structured_warnings you have to require ‘structured_warnings/test‘ manually, otherwise the test extensions will be added automatically.

Methods

Public Instance methods

Gives access to the currently used warner. Default is an instance of StructuredWarnings::Warner

Executes a block using the given warner. This may be used to suppress warnings to stdout, but fetch them and redirect them to somewhere else.

This behaviour is used in the StructuredWarnings::Assertions

[Validate]