Method: Listen::File#change

Defined in:
lib/listen/file.rb

#changeObject



11
12
13
14
15
16
17
18
19
20
21
22
# 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