From: nobu@... Date: 2017-03-29T09:19:59+00:00 Subject: [ruby-core:80465] [Ruby trunk Bug#13383] [PATCH] Module#source_location Issue #13383 has been updated by nobu (Nobuyoshi Nakada). Modules/classes can be opened again. Your patch seems returning the last location instead of the first, is it intentional? As for the implementation, it's not nice to keep iseq. It would be better to save them in (hidden) instance variable(s). ---------------------------------------- Bug #13383: [PATCH] Module#source_location https://bugs.ruby-lang.org/issues/13383#change-63957 * Author: koba789 (Hidekazu Kobayashi) * Status: Open * Priority: Normal * Assignee: * Target version: * ruby -v: * Backport: 2.2: UNKNOWN, 2.3: UNKNOWN, 2.4: UNKNOWN ---------------------------------------- # 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 -- https://bugs.ruby-lang.org/ Unsubscribe: