Method: UPnP::Device#dump
- Defined in:
- lib/UPnP/device.rb
#dump ⇒ Object
Writes this device description into ~/.UPnP so an identically named version can be created on the next load.
539 540 541 542 543 544 545 546 547 548 |
# File 'lib/UPnP/device.rb', line 539 def dump device_definition = File.join '~', '.UPnP', @type, @friendly_name device_definition = File. device_definition FileUtils.mkdir_p File.dirname(device_definition) open device_definition, 'wb' do |io| Marshal.dump self, io end end |