Method: Vedeu::Toggleable#toggle

Defined in:
lib/vedeu/models/toggleable.rb

#toggleFalseClass|TrueClass

Toggle the visible state and store the model. When the model is hidden, then it is shown, and vice versa.

Returns:

  • (FalseClass|TrueClass)


38
39
40
41
42
# File 'lib/vedeu/models/toggleable.rb', line 38

def toggle
  return hide if visible?

  show
end