Skip to content

Commit

Permalink
Enumerator::{Generator|Yielder}#initialize returns self
Browse files Browse the repository at this point in the history
  • Loading branch information
kachick committed Oct 25, 2015
1 parent e2c9686 commit 218b3b1
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
2 changes: 2 additions & 0 deletions lib-topaz/enumerator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ def with_object(obj, &block)
class Generator
def initialize(&block)
@block = block
self
end

def each
Expand All @@ -105,6 +106,7 @@ def each
class Yielder
def initialize(&block)
@block = block
self
end

def yield(*args)
Expand Down
1 change: 0 additions & 1 deletion spec/tags/core/enumerator/generator/initialize_tags.txt

This file was deleted.

1 change: 0 additions & 1 deletion spec/tags/core/enumerator/yielder/initialize_tags.txt

This file was deleted.

0 comments on commit 218b3b1

Please sign in to comment.