Module: PathOperator::Stringish
- Defined in:
- lib/path_operator.rb
Instance Method Summary collapse
Instance Method Details
#/(*others) ⇒ Object
6 7 8 |
# File 'lib/path_operator.rb', line 6 def / *others File.join self.to_s, *others.map(&:to_s) end |
#as_path ⇒ Object
10 11 12 |
# File 'lib/path_operator.rb', line 10 def as_path Pathname.new(self.to_s) end |