diff options
Diffstat (limited to 'lib/rainbows/sync_close.rb')
-rw-r--r-- | lib/rainbows/sync_close.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/rainbows/sync_close.rb b/lib/rainbows/sync_close.rb index a336262..75f119e 100644 --- a/lib/rainbows/sync_close.rb +++ b/lib/rainbows/sync_close.rb @@ -20,8 +20,8 @@ class Rainbows::SyncClose @body.to_path end - def each(&block) - @body.each(&block) + def each + @body.each { |x| yield x } end def to_io |