Parent

Methods

Listen::File

Attributes

data[RW]
path[RW]

Public Class Methods

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

Public Instance Methods

change() click to toggle source
# File lib/listen/file.rb, line 10
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.