From: mame@... Date: 2018-12-28T06:05:45+00:00 Subject: [ruby-core:90769] [Ruby trunk Feature#6012] Proc#source_location also return the column Issue #6012 has been updated by mame (Yusuke Endoh). Now the abstract syntax tree has column information, so we can implement this issue. We even add the last point of method. ``` # test.rb ���def foo # ���: line 2, column 0 end��� # ���: line 3, column 3 p method(:foo).source_location #=> ["test.rb", 2, 0, 3, 3] ``` ---------------------------------------- Feature #6012: Proc#source_location also return the column https://bugs.ruby-lang.org/issues/6012#change-75941 * Author: rogerdpack (Roger Pack) * Status: Assigned * Priority: Normal * Assignee: nobu (Nobuyoshi Nakada) * Target version: ---------------------------------------- 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/ Unsubscribe: