Function magnus::error::warning

source ·
pub fn warning(s: &str)
Expand description

Outputs s to Ruby’s stderr if Ruby is configured to output warnings.

Otherwise does nothing.

§Panics

Panics if called from a non-Ruby thread. See Ruby::warning for the non-panicking version.