Class: Rubydex::UnresolvedConstantReference

Inherits:
ConstantReference show all
Defined in:
ext/rubydex/reference.c

Instance Method Summary collapse

Methods inherited from ConstantReference

#initialize, #location

Methods inherited from Reference

#initialize, #location

Constructor Details

This class inherits a constructor from Rubydex::ConstantReference

Instance Method Details

#nameString

Returns the unresolved constant name.

Returns:

  • (String)


26
27
28
29
30
31
32
# File 'ext/rubydex/reference.c', line 26

static VALUE rdxr_constant_reference_name(VALUE self) {
    HandleData *data;
    void *graph = rdxi_graph_from_handle(self, &data);

    const char *name = rdx_constant_reference_name(graph, data->id);
    return rdxi_owned_c_string_to_ruby(name);
}