diff options
author | Abinoam Praxedes Marques Jr <abinoam@gmail.com> | 2015-10-09 14:56:46 -0300 |
---|---|---|
committer | Abinoam Praxedes Marques Jr <abinoam@gmail.com> | 2015-10-09 15:05:20 -0300 |
commit | 349e49456f7487275d5368a757cb296731f3fa8a (patch) | |
tree | 86de377d3dd114a55ef6a4a6b869e9f77a4ee926 | |
parent | e8309e69d6fb292d291b4ce325b8783eabe3e9fe (diff) | |
download | highline-349e49456f7487275d5368a757cb296731f3fa8a.tar.gz |
Fix String#lines returning an Enumerator on 1.9.3
-rwxr-xr-x | lib/highline.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/highline.rb b/lib/highline.rb index 19fe032..a08295a 100755 --- a/lib/highline.rb +++ b/lib/highline.rb @@ -989,7 +989,7 @@ class HighLine # instead. This is to support any special handling for the final sequence. # def page_print( output ) - lines = output.lines + lines = output.lines.to_a while lines.size > @page_at @output.puts lines.slice!(0...@page_at).join @output.puts |