From: James Britt Date: 2004-11-02T13:01:57+09:00 Subject: Re: Use yaml to store Ruby arrays or hashes in the DB? trans. (T. Onoma) wrote: > On Monday 01 November 2004 10:20 pm, James Britt wrote: > | > | How can you store Ruby-specific objects (i.e., custom, user-defined > | classes) in a language-neutral way? > > You use YAML. > > No really. That's all there it to it. The ri data files for 1.8.2 are in YAML. Can I load the following into a YAML parser in, say, perl or python? How does that language make sense of it? --- !ruby/object:RI::MethodDescription aliases: [] block_params: comment: - !ruby/struct:SM::Flow::P body: "Exclusive Or---If obj is nil or false, returns false; otherwise, returns true." full_name: FalseClass#^ is_singleton: false name: "^" params: > false ^ obj => true or false nil ^ obj => true or false visibility: public