-
-
Save havenwood/3a58a863b69a9b7c2327e21610899d4b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
daemons = ['cron', 'apmd'] | |
filename = 'daemons.store' | |
File.write filename, Marshal.dump(daemons) | |
if File.exist? filename | |
raise "`#{filename}' contains unexpected daemons: `#{Marshal.load File.read filename}'" | |
end | |
#!> RuntimeError: `daemons.store' contains unexpected daemons: `["cron", "apmd"]' |
What is Marshal ?
thank's=
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What is Marshal ?