lib/vedeu/bindings/visibility.rb in vedeu-0.5.0 vs lib/vedeu/bindings/visibility.rb in vedeu-0.5.1
- old
+ new
@@ -9,11 +9,11 @@
extend self
# Setup events relating to visibility. This method is called by Vedeu.
#
- # @return [void]
+ # @return [TrueClass]
def setup!
clear_group!
hide_cursor!
hide_group!
hide_interface!
@@ -32,11 +32,11 @@
#
# @example
# Vedeu.trigger(:_clear_group_, name)
# Vedeu.clear_by_group(name)
#
- # @return [void]
+ # @return [TrueClass]
def clear_group!
Vedeu.bind(:_clear_group_) do |name|
Vedeu::Clear::NamedGroup.render(name)
end
end
@@ -47,11 +47,11 @@
# @example
# Vedeu.trigger(:_hide_cursor_, name)
# Vedeu.trigger(:_cursor_hide_, name)
# Vedeu.hide_cursor(name)
#
- # @return [void]
+ # @return [TrueClass]
def hide_cursor!
Vedeu.bind(:_hide_cursor_) do |name|
Vedeu::Cursor.hide_cursor(name)
end
@@ -72,11 +72,11 @@
#
# @example
# Vedeu.trigger(:_hide_interface_, name)
# Vedeu.hide_interface(name)
#
- # @return [void]
+ # @return [TrueClass]
def hide_interface!
Vedeu.bind(:_hide_interface_) do |name|
Vedeu::Interface.hide_interface(name)
end
end
@@ -87,11 +87,11 @@
# @example
# Vedeu.trigger(:_show_cursor_, name)
# Vedeu.trigger(:_cursor_show_, name)
# Vedeu.show_cursor(name)
#
- # @return [void]
+ # @return [TrueClass]
def show_cursor!
Vedeu.bind(:_show_cursor_) do |name|
Vedeu::Cursor.show_cursor(name)
end
@@ -112,11 +112,11 @@
#
# @example
# Vedeu.trigger(:_show_interface_, name)
# Vedeu.show_interface(name)
#
- # @return [void]
+ # @return [TrueClass]
def show_interface!
Vedeu.bind(:_show_interface_) do |name|
Vedeu::Interface.show_interface(name)
end
end
@@ -125,11 +125,11 @@
#
# @example
# Vedeu.trigger(:_toggle_cursor_, name)
# Vedeu.toggle_cursor(name)
#
- # @return [void]
+ # @return [TrueClass]
def toggle_cursor!
Vedeu.bind(:_toggle_cursor_) do |name|
Vedeu::Cursor.toggle_cursor(name)
end
end
@@ -138,11 +138,11 @@
#
# @example
# Vedeu.trigger(:_toggle_group_, name)
# Vedeu.toggle_group(name)
#
- # @return [void]
+ # @return [TrueClass]
def toggle_group!
Vedeu.bind(:_toggle_group_) do |name|
Vedeu::Group.toggle_group(name)
end
end
@@ -151,10 +151,10 @@
#
# @example
# Vedeu.trigger(:_toggle_interface_, name)
# Vedeu.toggle_interface(name)
#
- # @return [void]
+ # @return [TrueClass]
def toggle_interface!
Vedeu.bind(:_toggle_interface_) do |name|
Vedeu::Interface.toggle_interface(name)
end
end