Class: Rubydex::ConstantAliasDefinition
- Inherits:
-
Definition
- Object
- Definition
- Rubydex::ConstantAliasDefinition
- Defined in:
- ext/rubydex/definition.c
Instance Method Summary collapse
-
#raw_name ⇒ String
Returns the class, module, or constant name as written in source, preserving explicit parent scopes like "Foo::Bar" and rooted paths like "::Bar".
Methods inherited from Definition
#comments, #declaration, #deprecated?, #document, #initialize, #lexical_nesting, #lexical_owner, #location, #name, #name_location
Constructor Details
This class inherits a constructor from Rubydex::Definition
Instance Method Details
#raw_name ⇒ String
Returns the class, module, or constant name as written in source, preserving explicit parent scopes like "Foo::Bar" and rooted paths like "::Bar".
174 175 176 177 178 179 180 181 182 183 184 |
# File 'ext/rubydex/definition.c', line 174 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); } |