Class: Pathname

Inherits:
Object
  • Object
show all
Defined in:
lib/easy_ml/core_ext/pathname.rb

Instance Method Summary collapse

Instance Method Details

#append(folder) ⇒ Object



4
5
6
7
8
# File 'lib/easy_ml/core_ext/pathname.rb', line 4

def append(folder)
  dir = cleanpath
  dir = dir.join(folder) unless basename.to_s == folder
  dir
end