Parent

Methods

FChange::Event

An event caused by a change on the filesystem. Each {Watcher} can fire many events, which are passed to that watcher’s callback.

Attributes

watcher[R]

The {Watcher} that fired this event.

@return [Watcher]

Public Class Methods

new(watcher) click to toggle source

Creates an event from a string of binary data. Differs from {Event.consume} in that it doesn’t modify the string.

@private @param watcher [Watcher] The {Watcher} that fired the event

# File lib/vendor/windows/lib/rb-fchange/event.rb, line 16
def initialize(watcher)
  @watcher = watcher
end

Public Instance Methods

callback!() click to toggle source

Calls the callback of the watcher that fired this event, passing in the event itself.

@private

# File lib/vendor/windows/lib/rb-fchange/event.rb, line 24
def callback!
  @watcher.callback!(self)
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.