Skip to content

Commit bb36d0c

Browse files
author
Kenta Murata
committed
Add clear_output display function
1 parent 3297cf0 commit bb36d0c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/iruby/display.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,10 @@ def display(obj, options = {})
3232
data
3333
end
3434

35+
def clear_output(wait=false)
36+
IRuby::Kernel.instance.session.send(:publish, :clear_output, {wait: wait})
37+
end
38+
3539
private
3640

3741
def protect(mime, data)

0 commit comments

Comments
 (0)