Class: Files
- Inherits:
-
Object
- Object
- Files
- Defined in:
- lib/rakepp/files.rb
Class Method Summary collapse
Class Method Details
.relative(base, pattern) ⇒ Object
4 5 6 7 8 9 10 |
# File 'lib/rakepp/files.rb', line 4 def self.relative(base, pattern) globPattern = Pathname.new(base) + pattern return Pathname.glob(globPattern.to_s).collect do |path| f = path.to_s SourceFile.new(f, f.sub(base, '')) end end |