Install ruby-pathname2 by entering the following commands in the terminal:
sudo apt update sudo apt install ruby-pathname2
Description:
alternate implementation of the Pathname class
pathname2 is a library that provides an implementation of the Pathname class different from the one that ships as part of the Ruby standard library. It is a subclass of String, though several methods have been overridden to better fit a path context. In addition, it supports file URL's as paths, provides additional methods for Windows paths, and handles UNC paths on Windows properly.
Homepage: https://github.com/djberg96/pathname2
Version: 1.8.0-2
Section: universe/ruby