Method: Witch.off
- Defined in:
- lib/witch.rb
.off(*events) ⇒ Object
47 48 49 50 51 52 |
# File 'lib/witch.rb', line 47 def off(*events) raise 'Not initialized' unless @callbacks events.each do |event| @callbacks[:on].delete(event.to_sym) end end |