⚲
Project
General
Profile
Sign in
Register
Home
Projects
Help
Search
:
Ruby master
All Projects
Ruby
»
Ruby master
Overview
Activity
Roadmap
Issues
Repository
Like
Download (283 Bytes)
Bug #11451
» repro.rb
Minimal Ruby script for repro -
alexdowad (Alex Dowad)
, 08/17/2015 12:54 PM
class
Yielder
def
each
yield
[
1
,
2
]
end
end
class
Getter1
include
Enumerable
def
each
(
&
block
)
Yielder
.
new
.
each
(
&
block
)
end
end
class
Getter2
include
Enumerable
def
each
Yielder
.
new
.
each
{
|
a
,
b
|
yield
(
a
)
}
end
end
Getter1
.
new
.
map
{
Getter2
.
new
.
map
{}
}
« Previous
1
2
Next »
(1-1/2)
Loading...