Class: ProxyPacRb::ProxyPacStringDumper
- Inherits:
-
Object
- Object
- ProxyPacRb::ProxyPacStringDumper
- Defined in:
- lib/proxy_pac_rb/proxy_pac_dumper.rb
Overview
Dump string to file
Instance Method Summary collapse
- #dump(proxy_pac) ⇒ Object
-
#initialize ⇒ ProxyPacStringDumper
constructor
A new instance of ProxyPacStringDumper.
Constructor Details
#initialize ⇒ ProxyPacStringDumper
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 |