Class: Vimpack::Utils::FilePath

Inherits:
Object
  • Object
show all
Defined in:
lib/vimpack/utils/file_path.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(base_path) ⇒ FilePath

Returns a new instance of FilePath.



6
7
8
# File 'lib/vimpack/utils/file_path.rb', line 6

def initialize(base_path)
  self.base_path = base_path
end

Instance Attribute Details

#base_pathObject

Returns the value of attribute base_path.



5
6
7
# File 'lib/vimpack/utils/file_path.rb', line 5

def base_path
  @base_path
end

Instance Method Details

#join(*paths) ⇒ Object



14
15
16
# File 'lib/vimpack/utils/file_path.rb', line 14

def join(*paths)
  ::File.join(@base_path, *paths)
end

#to_sObject



18
19
20
# File 'lib/vimpack/utils/file_path.rb', line 18

def to_s
  @base_path
end