Class: Pathname

Inherits:
Object show all
Defined in:
lib/api_hammer/glob_escape.rb

Instance Method Summary collapse

Instance Method Details

#glob_escapeObject

prefix any glob-special characters in this path with backslashes



11
12
13
# File 'lib/api_hammer/glob_escape.rb', line 11

def glob_escape
  self.class.new(Dir.glob_escape(self.to_path))
end