Parent

Methods

Listen::File

Attributes

data[RW]
listener[RW]
md5[RW]
path[RW]

Public Class Methods

new(listener, path) click to toggle source
# File lib/listen/file.rb, line 5
def initialize(listener, path)
  @listener = listener
  @path = path
  @data = { type: 'File' }
end

Public Instance Methods

change() click to toggle source
# File lib/listen/file.rb, line 11
def change
  if _existing_path? && _modified?
    _set_record_data
    :modified
  elsif _new_path?
    _set_record_data
    :added
  elsif _removed_path?
    _unset_record_data
    :removed
  end
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.