Class: Taggata::File

Inherits:
Object
  • Object
show all
Defined in:
lib/taggata/file.rb

Instance Method Summary collapse

Instance Method Details

#before_destroyObject



9
10
11
# File 'lib/taggata/file.rb', line 9

def before_destroy
  remove_all_tags
end

#pathObject

Gets full path of the file

Returns:

  • String full path of the file



29
30
31
# File 'lib/taggata/file.rb', line 29

def path
  ::File.join(parent.path, name)
end