Class: Pathname
- Inherits:
-
Object
- Object
- Pathname
- Defined in:
- lib/cotta/impl/cotta_pathname.rb
Instance Method Summary collapse
Instance Method Details
#cotta_parent ⇒ Object
2 3 4 5 6 7 8 |
# File 'lib/cotta/impl/cotta_pathname.rb', line 2 def cotta_parent parent_path = parent if (parent_path == self || parent_path.to_s == '..') return nil end return parent_path end |