Class: EverExp::Files::FileInFiles
- Inherits:
-
Object
- Object
- EverExp::Files::FileInFiles
- Defined in:
- lib/ever_exp/files.rb
Instance Attribute Summary collapse
-
#location ⇒ Object
readonly
Returns the value of attribute location.
Instance Method Summary collapse
-
#initialize(path) ⇒ FileInFiles
constructor
A new instance of FileInFiles.
- #name ⇒ Object
Constructor Details
#initialize(path) ⇒ FileInFiles
Returns a new instance of FileInFiles.
36 37 38 |
# File 'lib/ever_exp/files.rb', line 36 def initialize path @location = path end |
Instance Attribute Details
#location ⇒ Object (readonly)
Returns the value of attribute location.
34 35 36 |
# File 'lib/ever_exp/files.rb', line 34 def location @location end |
Instance Method Details
#name ⇒ Object
40 41 42 |
# File 'lib/ever_exp/files.rb', line 40 def name File.basename location end |