lib/daijobu/schemes/eval.rb in sander6-daijobu-0.2.0 vs lib/daijobu/schemes/eval.rb in sander6-daijobu-0.2.1

- old
+ new

@@ -1,12 +1,18 @@ module Daijobu module Scheme + + # Daijobu::Scheme::Eval is the serialization for pure Ruby code. + # Theoretically, then, anything could be put into and taken out of a key-value-store, + # provided that they're always rehydrated into an appropriate binding. class Eval + # Parses by #eval'ing the string. def parse(str) str.nil? ? nil : eval(str) end + # Unparses by #inspect'ing the object. def unparse(obj) obj.inspect end end \ No newline at end of file