Class: ProxyPacRb::ProxyPacStringDumper

Inherits:
Object
  • Object
show all
Defined in:
lib/proxy_pac_rb/proxy_pac_dumper.rb

Overview

Dump string to file

Instance Method Summary collapse

Constructor Details

#initializeProxyPacStringDumper

Returns a new instance of ProxyPacStringDumper.



31
32
33
# File 'lib/proxy_pac_rb/proxy_pac_dumper.rb', line 31

def initialize
  @default_file_name = 'proxy.pac'
end

Instance Method Details

#dump(proxy_pac) ⇒ Object



35
36
37
# File 'lib/proxy_pac_rb/proxy_pac_dumper.rb', line 35

def dump(proxy_pac)
  ::File.write(default_file_name, proxy_pac.content)
end