Module: PathOperator

Defined in:
lib/path_operator.rb

Instance Method Summary collapse

Instance Method Details

#/(*others) ⇒ Object



2
3
4
# File 'lib/path_operator.rb', line 2

def / *others
  File.join self, *others.map(&:to_s)
end

#to_pathObject



6
7
8
# File 'lib/path_operator.rb', line 6

def to_path
  Pathname.new(self.to_s)
end