General

Profile

BenOlive (Ben Olive)

Issues

open closed Total
Assigned issues 0 0 0
Reported issues 1 0 1

Activity

12/11/2015

11:53 PM Ruby Bug #11808 (Assigned): Different behavior between Enumerable#grep and Array#grep
Regex special global variables are available within the block for `Array#grep`, but are nil within the block for `Enumerable#grep`.
Here is an example that explains it better:
~~~ruby
class Test
include Enumerable
def each
...
BenOlive (Ben Olive)

Also available in: Atom