Module: PathOperator::Pathnameish
- Defined in:
- lib/path_operator.rb
Instance Method Summary collapse
Instance Method Details
#/(*others) ⇒ Object
16 17 18 |
# File 'lib/path_operator.rb', line 16 def / *others join *others.map(&:to_s) end |
#absolute ⇒ Object
24 25 26 |
# File 'lib/path_operator.rb', line 24 def absolute "/#{self}".to_path end |
#as_path ⇒ Object
28 29 30 |
# File 'lib/path_operator.rb', line 28 def as_path self end |
#from(other_path) ⇒ Object
20 21 22 |
# File 'lib/path_operator.rb', line 20 def from other_path self.relative_path_from( other_path.to_path ) end |