From f661d19a3858aae6a198bb1e40a03f3d00bfd750 Mon Sep 17 00:00:00 2001 From: kojix2 <2xijok@gmail.com> Date: Sun, 18 Aug 2019 13:51:47 +0900 Subject: [PATCH] add clear_output to Utils #207 --- lib/iruby/utils.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/iruby/utils.rb b/lib/iruby/utils.rb index 69a8cb7..8c46f5e 100644 --- a/lib/iruby/utils.rb +++ b/lib/iruby/utils.rb @@ -10,6 +10,10 @@ def display(obj, options = {}) metadata: {}) unless obj.nil? end + def clear_output(wait=false) + Display.clear_output(wait) + end + def table(s, **options) html(HTML.table(s, options)) end