Pastie now auto-senses if line-wrap is a bad or good idea. Feedback?
## mark a section (Learn more)
This paste will be private.
$ irb >> require 'yaml' => true >> Cat = Struct.new(:one, :two, :three) => Cat >> j = Cat.new(1, 2, 3) => #<struct Cat one=1, two=2, three=3> >> puts j.to_yaml --- !ruby/struct:Cat one: 1 two: 2 three: 3 => nil
From the Design Piracy series on my blog: