Skip to content

Commit 1602e99

Browse files
committed
Merge pull request #55 from mrkn/clear_output
Add clear_output display function
2 parents 3297cf0 + bb36d0c commit 1602e99

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)