Module: Vedeu::Toggleable::ClassMethods
- Defined in:
- lib/vedeu/models/toggleable.rb
Overview
Provide class methods to models to allow the visibility to be changed.
Instance Method Summary collapse
-
#hide(name = Vedeu.focus) ⇒ void
(also: #hide_cursor, #hide_group, #hide_interface)
Hides the model.
-
#show(name = Vedeu.focus) ⇒ void
(also: #show_cursor, #show_group, #show_interface)
Shows the model.
-
#toggle(name = Vedeu.focus) ⇒ void
(also: #toggle_cursor, #toggle_group, #toggle_interface)
Toggles the visibility of the model.
Instance Method Details
#hide(name = Vedeu.focus) ⇒ void Also known as: hide_cursor, hide_group, hide_interface
This method returns an undefined value.
Hides the model.
58 59 60 |
# File 'lib/vedeu/models/toggleable.rb', line 58 def hide(name = Vedeu.focus) repository.by_name(name).hide end |