Project

General

Profile

Actions

Feature #13383

open

[PATCH] Module#source_location

Added by koba789 (Hidekazu Kobayashi) over 4 years ago. Updated over 1 year ago.

Status:
Open
Priority:
Normal
Target version:
-
[ruby-core:80458]

Description

Abstract

It can inspect where the module or class is defined.

Background

In debugging or development an application, I usually want to find out where the class definition of using library.
There is Method#source_location but I could not find Class easily.

Implementation

In Github: https://github.com/ruby/ruby/pull/1562


Related issues

Related to Ruby master - Feature #17749: Const source location without nameOpenActions
Actions

Also available in: Atom PDF