znz (Kazuhiro NISHIYAMA) wrote in #note-1: > What does `regexp_without_matchdata.match(string)` return when matched? Thats what `when not explicitly needed by the method.` part was about: it returns `MatchData` in this case, as reque...fatkodima (Dima Fatko)
Originates from https://bugs.ruby-lang.org/issues/17030 When this option is specified, ruby will not create global `MatchData` objects, when not explicitly needed by the method. If the new option is named `f`, we can write as `/o/f...fatkodima (Dima Fatko)
While I needed `Class#descendants` many times, I never had a need for `Module#descendants`. But I can think of its usefulness. For example, when inheritance is implemented through modules, but not classes, for example - a quick searc...fatkodima (Dima Fatko)
Eregon (Benoit Daloze) wrote in #note-7: > What if a block is given, and one want to use a start index? (for efficiency and not run the block for the first `start` elements). > ... ary.index(from: start) { |i| ... } or ary.index(star...fatkodima (Dima Fatko)
* [Feature #14394] Class.descendants (fatkodima) * Introduces `Module#descendants` method as a native way to track `Class`/`Module` descendants, instead of inefficient hack like crawling `ObjectSpace` or tracking descendants via `inher...fatkodima (Dima Fatko)
I have implemented an `offset` parameter for `Array#index` - https://github.com/ruby/ruby/pull/3448 Will adjust to more methods if asked.fatkodima (Dima Fatko)