Class: Pathname (Ruby 2.2.3)
Description: Class : Pathname - Ruby 2.2.3

- Home
- Core 2.2.3
- Std-lib 2.2.3
- Downloads

Support for the Ruby 2.2 series has ended. See here for reference.

### Home Classes Methods

### In Files

- rake/ext/pathname.rb

### Parent

Object

### Methods

- #ext
- #pathmap

### Class/Module Index

Quicksearch

- FileUtils
- Module
- Object
- Pathname
- Rake::Application
- Rake::CompositePublisher
- Rake::DSL
- Rake::DefaultLoader
- Rake::EarlyTime
- Rake::FileCreationTask
- Rake::FileList
- Rake::FileTask
- Rake::FileUtilsExt
- Rake::InvocationChain
- Rake::InvocationChain::EmptyInvocationChain
- Rake::InvocationExceptionMixin
- Rake::LateTime
- Rake::LinkedList
- Rake::LinkedList::EmptyLinkedList
- Rake::MakefileLoader
- Rake::MultiTask
- Rake::NameSpace
- Rake::PackageTask
- Rake::PrivateReader
- Rake::RuleRecursionOverflowError
- Rake::Scope
- Rake::SshDirPublisher
- Rake::SshFilePublisher
- Rake::SshFreshDirPublisher
- Rake::Task
- Rake::TaskArgumentError
- Rake::TaskArguments
- Rake::TaskLib
- Rake::TaskManager
- Rake::TestTask
- Rake::Win32
- String

No matching classes.

# Pathname

### Public Instance Methods

ext(newext='') click to toggle source

Return a new Pathname with `String#ext` applied to it.

This Pathname extension comes from Rake

                   # File rake/ext/pathname.rb, line 10
    def ext(newext='')
      Pathname.new(Rake.from_pathname(self).ext(newext))
    end

pathmap(spec=nil, &block) click to toggle source

Apply the pathmap spec to the Pathname, returning a new Pathname with the modified paths. (See String#pathmap for details.)

This Pathname extension comes from Rake

                   # File rake/ext/pathname.rb, line 21
    def pathmap(spec=nil, &block)
      Pathname.new(Rake.from_pathname(self).pathmap(spec, &block))
    end