class INotify::Event
def self.consume(data, notifier)
-
(Event, nil)
- The event, or `nil` if the string is empty
Parameters:
-
notifier
(Notifier
) -- The {Notifier} that fired the event -
data
(String
) -- The string to be modified
Other tags:
- Private: -
def self.consume(data, notifier) return nil if data.empty? ev = new(data, notifier) data.replace data[ev.size..-1] ev end