Function magnus::require

source ·
pub fn require<T>(feature: T) -> Result<bool, Error>where
    T: Into<RString>,
Expand description

Finds and loads the given feature if not already loaded.

Examples

use magnus::require;

assert!(require("net/http").unwrap());