Project

General

Profile

Actions

Feature #14836

closed

Method to return first/last lineno/column of Proc

Added by tagomoris (Satoshi Tagomori) almost 6 years ago. Updated over 5 years ago.

Status:
Closed
Assignee:
-
Target version:
-
[ruby-core:87456]

Description

As written in https://bugs.ruby-lang.org/issues/6012, we want to know column no of Proc location.
In addition to it, I want to know the last_lineno and last_column.

If we don't have these values, we cannot know whether the "a" in code below is defined in block, or not.

b1 = ->(){ foo() }; a = 1; b2 = ->(){ bar() }
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0