Class: Insup::TrackedFile

Inherits:
Struct
  • Object
show all
Defined in:
lib/insup/tracked_file.rb

Constant Summary collapse

NEW =
0
MODIFIED =
1
DELETED =
2
UNSURE =
3

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#pathObject

Returns the value of attribute path

Returns:

  • (Object)

    the current value of path



3
4
5
# File 'lib/insup/tracked_file.rb', line 3

def path
  @path
end

#stateObject

Returns the value of attribute state

Returns:

  • (Object)

    the current value of state



3
4
5
# File 'lib/insup/tracked_file.rb', line 3

def state
  @state
end

Instance Method Details

#file_nameObject



9
10
11
# File 'lib/insup/tracked_file.rb', line 9

def file_name
  Pathname.new(path).basename.to_s
end