From: "ioquatix (Samuel Williams)" Date: 2022-09-28T20:46:53+00:00 Subject: [ruby-core:110141] [Ruby master Bug#19026] Add `Coverage.supported?(x)` to detect support for `eval` coverage flag. Issue #19026 has been updated by ioquatix (Samuel Williams). Status changed from Open to Closed I agree, for the existing Ruby implementations, it's a little clumsy but easily worked around using `respond_to?`. Going forward, this is a simple and good interface. Merged PR. ---------------------------------------- Bug #19026: Add `Coverage.supported?(x)` to detect support for `eval` coverage flag. https://bugs.ruby-lang.org/issues/19026#change-99399 * Author: ioquatix (Samuel Williams) * Status: Closed * Priority: Normal * Backport: 2.7: UNKNOWN, 3.0: UNKNOWN, 3.1: UNKNOWN ---------------------------------------- Introduce the following interface: ``` Coverage.supported?(eval) -> true/false ``` We can also check `lines` `branches` and `methods`? -- https://bugs.ruby-lang.org/ Unsubscribe: