1 2 3 4 5 6 7 8 9 10 11
impl std::fmt::Debug for {{ struct_name }} { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { write!(f, "{{ struct_name }}") } } impl {{ struct_name }} { pub fn new(rb_obj: magnus::Value) -> Self { Self { rb_obj } } }