Sha256: 1004d365b832ff98f1d882c3b7781f6b7c9f01b5252247076260ef68bce99cac
Contents?: true
Size: 362 Bytes
Versions: 1
Compression:
Stored size: 362 Bytes
Contents
module StructuredWarnings module Test class Warner < StructuredWarnings::Warner def format(warning, message, call_stack) given_warnings << warning nil end def warned?(warning) given_warnings.any? {|w| (w <= warning)} end def given_warnings @given_warnings ||= [] end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
structured_warnings-0.1.0 | lib/structured_warnings/test/warner.rb |