lib/prompts/content.rb in prompts-0.2.0 vs lib/prompts/content.rb in prompts-0.2.1

- old
+ new

@@ -41,30 +41,30 @@ @slots.unshift(*lines) end private - def clear_screen - jump_cursor_to_top - erase_down - end + def clear_screen + jump_cursor_to_top + erase_down + end - def render_frame - @frame_stack << @slots.dup - OUTPUT.puts SPACE + def render_frame + @frame_stack << @slots.dup + OUTPUT.puts SPACE - return if @slots.empty? + return if @slots.empty? - OUTPUT.puts @slots.join("\n") - OUTPUT.puts SPACE - @slots.clear - end + OUTPUT.puts @slots.join("\n") + OUTPUT.puts SPACE + @slots.clear + end - def jump_cursor_to_top - OUTPUT.print "\033[H" - end + def jump_cursor_to_top + OUTPUT.print "\033[H" + end - def erase_down - OUTPUT.print "\e[J" - end + def erase_down + OUTPUT.print "\e[J" + end end -end \ No newline at end of file +end