Class: WarningShot::FileResolver::FileResource Private
- Defined in:
- lib/resolvers/file_resolver.rb
Overview
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Define FileResource struct
Instance Attribute Summary collapse
-
#source ⇒ Object
Returns the value of attribute source.
-
#target ⇒ Object
Returns the value of attribute target.
Instance Method Summary collapse
- #exists? ⇒ Boolean private
- #remove ⇒ Object private
Instance Attribute Details
#source ⇒ Object
Returns the value of attribute source
20 21 22 |
# File 'lib/resolvers/file_resolver.rb', line 20 def source @source end |
#target ⇒ Object
Returns the value of attribute target
20 21 22 |
# File 'lib/resolvers/file_resolver.rb', line 20 def target @target end |
Instance Method Details
#exists? ⇒ Boolean
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
21 |
# File 'lib/resolvers/file_resolver.rb', line 21 def exists?;File.exists?(File.(target.path));end |
#remove ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
22 |
# File 'lib/resolvers/file_resolver.rb', line 22 def remove;File.unlink(File.(target.path));end |