[ruby-core:120572] [Ruby master Feature#6012] Proc#source_location also return the column

Issue #6012 has been updated by mame (Yusuke Endoh). This was discussed at the October 2024 dev meeting and @matz approved `source_location` to return `[path, start_line, start_column, end_line, end_column]`. https://github.com/ruby/dev-meeting-log/blob/28e0f45f334b31e60c7e07d25b6b6cb... Matz was negative neither on adding a new class like Ruby::CodeLocation for this purpose, or adding offset information. We briefly re-asked matz about this at today's dev meeting, and he had not changed his mind. ---------------------------------------- Feature #6012: Proc#source_location also return the column https://bugs.ruby-lang.org/issues/6012#change-111396 * Author: rogerdpack (Roger Pack) * Status: Assigned * Assignee: nobu (Nobuyoshi Nakada) ---------------------------------------- As originally suggested in http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-core/42418 Suggestion/feature request: have #source_location also return the beginning column where it was defined. ["test.rb", 8, 33] Thanks! -roger- -- https://bugs.ruby-lang.org/
participants (1)
-
mame (Yusuke Endoh)