# File lib/asciidoctor/reader.rb, line 198 def peek_lines num, direct = false old_look_ahead = @look_ahead result = [] num.times do if (line = direct ? shift : read_line) result << line else @lineno -= 1 if direct break end end unless result.empty? unshift_all result @look_ahead = old_look_ahead if direct end result end