General

Profile

mame (Yusuke Endoh)

  • Login: mame
  • Email: mame@ruby-lang.org
  • Registered on: 05/28/2008
  • Last sign in: 09/24/2025

Issues

open closed Total
Assigned issues 2 147 149
Reported issues 17 340 357

Projects

Project Roles Registered on
Ruby Committer, Security team, Infrastructure team 05/28/2008

Activity

Today

02:18 PM Ruby Feature #6012: Proc#source_location also return the column
> A quick search shows some examples which do not use an AST:
A "use case" is the ultimate goal that the examples aim to achieve via `Method#source`.
By the way, I tried the `method_source` gem, and I noticed that it includes hered...
mame (Yusuke Endoh)
12:07 PM Ruby Feature #6012: Proc#source_location also return the column
Note that there is also an idiom like `foo(*obj.source_location)`, not just `source_location.last`. By checking the result of "gem-codesearch", we see not only `@binding.source_location` but also `@proc.source_location`. I am not sure if... mame (Yusuke Endoh)
11:54 AM Ruby Feature #6012: Proc#source_location also return the column
Eregon (Benoit Daloze) wrote in #note-44:
> mame (Yusuke Endoh) wrote in #note-43:
> ...
First, I suspect that what many users of `method_source` gem actually need is the AST. The proposal #21005 itself demonstrates this.
I recogniz...
mame (Yusuke Endoh)
12:17 AM Ruby Feature #6012: Proc#source_location also return the column
Eregon (Benoit Daloze) wrote in #note-41:
> @mame Matz explicitly approved it: https://github.com/ruby/ruby/pull/15580#issuecomment-3691058342
Ah, I missed that the PR had already been approved. Sorry about that.
However, we should con...
mame (Yusuke Endoh)
12:51 AM Ruby Misc #21777: DevMeeting-2026-01-14
* [Feature #13683] Add strict Enumerable#single (mame)
* ActiveSupport now has `Enumerable#sole`. https://github.com/rails/rails/pull/40914
* I want this on the core too. It's good that the intention of having only one is explicitly ...
mame (Yusuke Endoh)
12:44 AM Ruby Misc #21777: DevMeeting-2026-01-14
* [Feature #6012] Proc#source_location also return the column (mame)
* Quite a few gems are using the idiom `source_location.last`.
* The idiom will return a column number (of the end of the code range) instead of a line number.
...
mame (Yusuke Endoh)
12:33 AM Ruby Feature #13683: Add strict Enumerable#single
I've only just learned that ActiveSupport introduced `Enumerable#sole` back in 2020.
https://github.com/rails/rails/pull/40914
I wish this were available in the core too.
mame (Yusuke Endoh)

01/06/2026

04:41 AM Ruby Feature #6012 (Open): Proc#source_location also return the column
@eregon Why was this re-merged?
The first two issues raised in #note-32 (re-listed below) have not yet been resolved.
mame (Yusuke Endoh) wrote in #note-32:
> * Unclear use cases
> ...
In addition, as pointed out by @vo.x:
htt...
mame (Yusuke Endoh)

12/29/2025

04:42 PM Ruby Bug #21812 (Assigned): Kernel#sleep without arguments returns immediately when subprocess exits in another thread (regression in Ruby 4.0)
Thanks for the nice catch.
`git bisect` points to commit:8d8159e7d87e4fd1594ce2fad3d2653e47fb1026. The changes in that commit seem relevant to this issue.
@luke-gru Could you take a look?
mame (Yusuke Endoh)

12/26/2025

06:47 AM Ruby Bug #21808 (Assigned): Inconsistency in support of additional newlines with boolean logical operators on new line
If I recall, this is intentional. A blank line before a period for a method call also causes a parsing error.
```
$ ruby -e '"foo"
>
> ...
-e: -e:3: syntax error found (SyntaxError)
1 | "foo"
2 |
> 3 | .upcase
| ^ unexp...
mame (Yusuke Endoh)

Also available in: Atom