Class: Vimpack::Utils::FilePath
- Inherits:
-
Object
- Object
- Vimpack::Utils::FilePath
- Defined in:
- lib/vimpack/utils/file_path.rb
Instance Attribute Summary collapse
-
#base_path ⇒ Object
Returns the value of attribute base_path.
Instance Method Summary collapse
-
#initialize(base_path) ⇒ FilePath
constructor
A new instance of FilePath.
- #join(*paths) ⇒ Object
- #to_s ⇒ Object
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_path ⇒ Object
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_s ⇒ Object
18 19 20 |
# File 'lib/vimpack/utils/file_path.rb', line 18 def to_s @base_path end |