fn nodecontext_to_rb_hash(
ctx: &{{ context_type_path }},
) -> magnus::RHash {
let ruby = unsafe { magnus::Ruby::get_unchecked() };
let h = ruby.hash_new();
{{ context_field_lines }}
h
}
pub struct {{ struct_name }} {
rb_obj: magnus::Value,
}
impl std::fmt::Debug for {{ struct_name }} {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "{{ struct_name }}")
}
}