diff options
Diffstat (limited to 'lib/roo/base.rb')
| -rw-r--r-- | lib/roo/base.rb | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/roo/base.rb b/lib/roo/base.rb index f4ac9a3..91c8d1c 100644 --- a/lib/roo/base.rb +++ b/lib/roo/base.rb @@ -250,8 +250,10 @@ class Roo::Base # iterate through all worksheets of a document def each_with_pagename - sheets.each do |s| - yield sheet(s, true) + Enumerator.new do |yielder| + sheets.each do |s| + yielder << sheet(s, true) + end end end |
