Project

General

Profile

Feature #13383

[PATCH] Module#source_location

Added by koba789 (Hidekazu Kobayashi) almost 4 years ago. Updated about 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

Also available in: Atom PDF