News for hackers. Stuff that matters.
Re:I Love Ruby by pdntspa on Monday December 18, 2023 @08:27PM (#38690673)
It's a pretty simple heuristic to track down the source of metaprogrammed functions... just check for method_missing() or define_function() or a handful of other keywords. I believe the regular syntax is just shorthand for these features anyway.

edit- as another comment points out, you can just do `@subscription.method(:supports_feature?).source_location` too

Re:I Love Ruby by rezonant on Tuesday December 19, 2023 @06:24AM (#38694316)
Another strategy is just to step into the method call in pry/byebug. I've done that for particularly tricky cases. At that point it's pretty easy to walk it up to the mechanism that does the metaprogramming.