examples/test.rb in tmp-1.3.0 vs examples/test.rb in tmp-2.0.0
- old
+ new
@@ -1,18 +2 @@
-require 'tmp'
-
-TMP.write :test, {hello: 'world'}
-puts TMP.read(:test)
-
-# or you can use syntax sugar!
-tmp.hello = { hello: 'world'}
-
-# defined variable
-puts tmp.hello #> { hello: 'world'}
-
-# undefined variable
-puts tmp.sup #> nil
-
-TMP.purge!
-
-# call after tmp is purged
-puts tmp.hello #> nil
+# all set! :)
\ No newline at end of file