lib/vedeu/bindings/visibility.rb in vedeu-0.6.21 vs lib/vedeu/bindings/visibility.rb in vedeu-0.6.22
- old
+ new
@@ -15,10 +15,11 @@
# @return [TrueClass]
def setup!
clear!
clear_group!
clear_view!
+ clear_view_content!
hide_cursor!
hide_group!
hide_interface!
show_cursor!
show_group!
@@ -50,9 +51,16 @@
end
# See {file:docs/events/visibility.md#\_clear_view_}
def clear_view!
Vedeu.bind(:_clear_view_) { |name| Vedeu.clear_by_name(name) }
+ end
+
+ # See {file:docs/events/visibility.md#\_clear_view_content_}
+ def clear_view_content!
+ Vedeu.bind(:_clear_view_content_) do |name|
+ Vedeu.clear_content_by_name(name)
+ end
end
# See {file:docs/events/visibility.md#\_hide_cursor_}
def hide_cursor!
Vedeu.bind(:_hide_cursor_) { |name| Vedeu.hide_cursor(name) }