pub fn qnil() -> Qnil
Expand description
Returns Ruby’s nil
value.
This should optimise to a constant reference.
§Panics
Panics if called from a non-Ruby thread. See Ruby::qnil
for the
non-panicking version.
§Examples
use magnus::{rb_assert, value::qnil};
rb_assert!("val == nil", val = qnil());