Class: EverExp::Files::FileInFiles

Inherits:
Object
  • Object
show all
Defined in:
lib/ever_exp/files.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#locationObject (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

#nameObject



40
41
42
# File 'lib/ever_exp/files.rb', line 40

def name
  File.basename location
end