Class: Insup::TrackedFile
- Inherits:
-
Struct
- Object
- Struct
- Insup::TrackedFile
- Defined in:
- lib/insup/tracked_file.rb
Constant Summary collapse
- NEW =
0
- MODIFIED =
1
- DELETED =
2
- UNSURE =
3
Instance Attribute Summary collapse
-
#path ⇒ Object
Returns the value of attribute path.
-
#state ⇒ Object
Returns the value of attribute state.
Instance Method Summary collapse
Instance Attribute Details
#path ⇒ Object
Returns the value of attribute path
3 4 5 |
# File 'lib/insup/tracked_file.rb', line 3 def path @path end |
#state ⇒ Object
Returns the value of attribute state
3 4 5 |
# File 'lib/insup/tracked_file.rb', line 3 def state @state end |
Instance Method Details
#file_name ⇒ Object
9 10 11 |
# File 'lib/insup/tracked_file.rb', line 9 def file_name Pathname.new(path).basename.to_s end |