Class: IronHammer::Utils::Windows

Inherits:
Object
  • Object
show all
Defined in:
lib/iron_hammer/utils/windows.rb

Class Method Summary collapse

Class Method Details

.patheticalize(*params) ⇒ Object



4
5
6
7
# File 'lib/iron_hammer/utils/windows.rb', line 4

def self.patheticalize *params
  return '' if params.nil? || params.empty?
  params[1..-1].inject(String.new params[0]) { |a, b| a << "\\#{b}" }
end