Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mruby
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Libraries
mruby
Commits
3ac98009
Unverified
Commit
3ac98009
authored
Jul 28, 2019
by
Yukihiro "Matz" Matsumoto
Committed by
GitHub
Jul 28, 2019
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #4602 from shuujii/remove-EnumeratorChain-initialize_copy
Remove `Enumerator::Chain#initialize_copy`
parents
34741d51
27e3d92a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
10 deletions
+0
-10
mrbgems/mruby-enum-chain/mrblib/chain.rb
mrbgems/mruby-enum-chain/mrblib/chain.rb
+0
-10
No files found.
mrbgems/mruby-enum-chain/mrblib/chain.rb
View file @
3ac98009
...
...
@@ -20,10 +20,6 @@ class Enumerator
@enums
=
args
end
def
initialize_copy
(
orig
)
@enums
=
orig
.
__copy_enums
end
def
each
(
&
block
)
return
to_enum
unless
block_given?
...
...
@@ -57,11 +53,5 @@ class Enumerator
def
inspect
"#<
#{
self
.
class
}
:
#{
@enums
.
inspect
}
>"
end
def
__copy_enums
@enums
.
each_with_object
([])
do
|
e
,
a
|
a
<<
e
.
clone
end
end
end
end
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment