Module: Fzeet::Toggle
- Included in:
- MenuMethods::Item, UIRibbon::Command, WindowMethods
- Defined in:
- lib/fzeet/Common.rb
Instance Method Summary collapse
Instance Method Details
#toggle(what) ⇒ Object
48 49 50 51 52 53 54 55 56 57 58 |
# File 'lib/fzeet/Common.rb', line 48 def toggle(what) send("#{what}=", !send("#{what}?")) begin yield self ensure toggle(what) end if block_given? self end |