Class: CabbageDoc::Path

Inherits:
Object
  • Object
show all
Defined in:
lib/cabbage_doc/path.rb

Class Method Summary collapse

Class Method Details

.join(*args) ⇒ Object



4
5
6
# File 'lib/cabbage_doc/path.rb', line 4

def join(*args)
  args.join('/').gsub(/\/+/, '/').gsub(/\/+$/, '')
end