Method: NotifySet#remove

Defined in:
lib/notifyhub.rb

#remove(notify = nil) ⇒ Object

Remove all or one Notify.

Parameters:

  • notify (Notify) (defaults to: nil)

    Notify to remove (all if not given).



282
283
284
285
286
287
288
# File 'lib/notifyhub.rb', line 282

def remove( notify = nil )
    if notify
        @list.delete( notify )
    else
        @list = []
    end
end