Method: Vedeu::Toggleable#toggle
- Defined in:
- lib/vedeu/models/toggleable.rb
#toggle ⇒ FalseClass|TrueClass
Toggle the visible state and store the model. When the model is hidden, then it is shown, and vice versa.
38 39 40 41 42 |
# File 'lib/vedeu/models/toggleable.rb', line 38 def toggle return hide if visible? show end |