pub fn require<T>(feature: T) -> Result<bool, Error>where
T: IntoRString,
Expand description
Finds and loads the given feature if not already loaded.
§Panics
Panics if called from a non-Ruby thread. See Ruby::require
for the
non-panicking version.
§Examples
use magnus::require;
assert!(require("net/http").unwrap());