Method: HMap::MapFile#write
- Defined in:
- lib/hmap/hmap/mapfile.rb
#write(filepath, contents = nil) ⇒ void
This method returns an undefined value.
Write all mafile data to the given filename.
19 20 21 22 |
# File 'lib/hmap/hmap/mapfile.rb', line 19 def write(filepath, contents = nil) contents = serialize if contents.nil? Utils.update_changed_file(filepath, contents) end |