Pastie now auto-senses if line-wrap is a bad or good idea. Feedback?
## mark a section (Learn more)
# ruby 1.9.0 (2007-12-25 revision 14709) [i386-mswin32] # This is okay... # h = { # "x"=>[[4.0]] # } # marshall_test_case.rb:8:in `load': marshal data too short (ArgumentError) # from marshall_test_case.rb:8:in `<main>' h = { "x"=>[[4.0]] } File.open("sample.cache", "w"){|f| Marshal.dump(h, f)} puts Marshal.load(File.read("sample.cache"))
This paste will be private.
From the Design Piracy series on my blog: