class Rubydex::ConstantDefinition
Public Instance Methods
Source
static VALUE rdxr_definition_raw_name(VALUE self) {
HandleData *data;
void *graph = rdxi_graph_from_handle(self, &data);
const char *name = rdx_definition_raw_name(graph, data->id);
if (name == NULL) {
rb_raise(rb_eRuntimeError, "Definition not found");
}
return rdxi_owned_c_string_to_ruby(name);
}
Returns the class, module, or constant name as written in source, preserving explicit parent scopes like βFoo::Barβ and rooted paths like β::Barβ.