Class: Lxc::Pathname

Inherits:
Pathname
  • Object
show all
Defined in:
lib/elecksee/lxc.rb

Overview

Pathname#join does not act like File#join when joining paths that begin with ‘/’, and that’s dumb. So we’ll make our own Pathname, with a #join that uses File

Instance Method Summary collapse

Instance Method Details

#join(*args) ⇒ String

Join arguments using ::File.join

Parameters:

  • args (String)

    argument list

Returns:

  • (String)


18
19
20
# File 'lib/elecksee/lxc.rb', line 18

def join(*args)
  self.class.new(::File.join(self.to_path, *args))
end