Class: Pathname
- Inherits:
-
Object
- Object
- Pathname
- Defined in:
- lib/ver/vendor/pathname.rb
Overview
annoying fixes
Instance Method Summary collapse
Instance Method Details
#=~(regexp) ⇒ Object
11 12 13 |
# File 'lib/ver/vendor/pathname.rb', line 11 def =~(regexp) to_s =~ regexp end |
#cp(dest) ⇒ Object
7 8 9 |
# File 'lib/ver/vendor/pathname.rb', line 7 def cp(dest) FileUtils.copy_file(.to_s, dest.to_s, preserve = true) end |
#glob(&block) ⇒ Object
15 16 17 18 19 20 21 |
# File 'lib/ver/vendor/pathname.rb', line 15 def glob(&block) if block Dir.glob(to_s){|match| yield(self.class.new(match)) } else Dir.glob(to_s) end end |
#shellescape ⇒ Object
23 24 25 |
# File 'lib/ver/vendor/pathname.rb', line 23 def shellescape to_s.shellescape end |