module Elixir::Path

Public Instance Methods

absname(path) click to toggle source
# File lib/elixir/path.rb, line 5
def absname path
  ::File.expand_path path
end
basename(path) click to toggle source
# File lib/elixir/path.rb, line 9
def basename path
  base = ::File.basename path

  base == '/' ? '' : base
end
dirname(path) click to toggle source
# File lib/elixir/path.rb, line 15
def dirname path
  ::File.dirname path
end
expand(path) click to toggle source
# File lib/elixir/path.rb, line 19
def expand path
  ::File.expand_path path
end
extname(path) click to toggle source
# File lib/elixir/path.rb, line 23
def extname path
  ::File.extname path
end