Skip to main content

install_ruby_dsl_profile

Function install_ruby_dsl_profile 

Source
pub fn install_ruby_dsl_profile(
    cx: &mut Cx,
    registry: &mut ProfileRegistry,
) -> Result<LanguageProfile>
Expand description

Installs the Ruby DSL profile and its organ claims into a registry.

First-reach entry point: registers ruby_dsl_profile through the standard profile installer, publishing the control- and dispatch-organ claims so the surface becomes loadable.

ยงExamples

use std::sync::Arc;
use sim_kernel::{Cx, DefaultFactory, NoopEvalPolicy, Symbol};
use sim_lib_standard_core::ProfileRegistry;
use sim_lib_lang_ruby::install_ruby_dsl_profile;

let mut cx = Cx::new(Arc::new(NoopEvalPolicy), Arc::new(DefaultFactory));
let mut registry = ProfileRegistry::new();
let profile = install_ruby_dsl_profile(&mut cx, &mut registry).unwrap();
assert_eq!(profile.reader, Symbol::qualified("codec", "algol"));