Method: Pathname#parentname
- Defined in:
- lib/pleasant_path/pathname.rb
#parentname ⇒ Pathname
Returns the basename
of the Pathname’s dirname
.
39 40 41 |
# File 'lib/pleasant_path/pathname.rb', line 39 def parentname self.dirname.basename end |