Skip to content
Sign up
Product
Features
Mobile
Actions
Codespaces
Copilot
Packages
Security
Code review
Issues
Integrations
GitHub Sponsors
Customer stories
Team
Enterprise
Explore
Explore GitHub
Learn and contribute
Topics
Collections
Trending
Skills
GitHub Sponsors
Open source guides
Connect with others
The ReadME Project
Events
Community forum
GitHub Education
GitHub Stars program
Marketplace
Pricing
Plans
Compare plans
Contact Sales
Education
In this repository
All GitHub
↵
Jump to
↵
No suggested jump to results
In this repository
All GitHub
↵
Jump to
↵
In this organization
All GitHub
↵
Jump to
↵
In this repository
All GitHub
↵
Jump to
↵
Sign in
Sign up
{{ message }}
mruby
/
mruby
Public
Notifications
Fork
745
Star
5k
Code
Issues
105
Pull requests
29
Discussions
Actions
Projects
0
Wiki
Security
Insights
More
Code
Issues
Pull requests
Discussions
Actions
Projects
Wiki
Security
Insights
Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Support Enumerable methods
Loading branch information
ksss
committed
Dec 1, 2016
1 parent
2bb47ad
commit
31f0ffeac8dc2214d432be3ef78f9776dad32cb0
Showing
1 changed file
with
1 addition
and
0 deletions
.
Split
Unified
There are no files selected for viewing
1
mrbgems/mruby-enumerator/mrblib/enumerator.rb
Show comments
View file
Edit file
Delete file
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
@@ -516,6 +516,7 @@ def feed(value)
# just for internal
class
Generator
include
Enumerable
def
initialize
(
&
block
)
raise
TypeError
,
"wrong argument type
#{
self
.
class
}
(expected Proc)"
unless
block
.
kind_of?
Proc
Toggle all file notes
Toggle all file annotations
0 comments on commit
31f0ffe
Please
sign in
to comment.
You can’t perform that action at this time.
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.