Class: Pathname
- Inherits:
-
Object
- Object
- Pathname
- Defined in:
- lib/extensions.rb
Instance Method Summary collapse
Instance Method Details
#glob(*args, &block) ⇒ Object
2 3 4 5 6 |
# File 'lib/extensions.rb', line 2 def glob(*args, &block) args = [''] if args.empty? args[0] = (self + args[0]).to_s Pathname.glob(*args, &block) end |
#to_str ⇒ Object
12 13 14 |
# File 'lib/extensions.rb', line 12 def to_str win end |
#win ⇒ Object
8 9 10 |
# File 'lib/extensions.rb', line 8 def win self.to_s.gsub('/','\\') end |