2 3 4
# File 'lib/path_operator.rb', line 2 def / *others File.join self, *others.map(&:to_s) end
6 7 8
# File 'lib/path_operator.rb', line 6 def to_path Pathname.new(self.to_s) end