From: gabriele renzi Date: 2004-10-27T01:34:07+09:00 Subject: Re: Inline YAML in Ruby code - possible? converse? Its Me ha scritto: > I recall an old post by Why which described some way to inline chunks of > YAML right into Ruby code. Could not locate it in Google. Roughly like > > def foo > a = %y > r: abc > s: pqr > t: - 1 > - 2 > - 3 > %y > return a > end > > Does anyone have the details, and what to include to enable this processing? you have to patch ruby and recompile > Conversely, is there any way to include Ruby code inline in YAML? Could "!!" > be faked out to accomplish this? > > And lastly, could YAML be used in a re-entrant way e.g. could the code > processing a private type !! in the middle of a YAML::load in turn make a > nested call to YAML::load? dunno, sorry :/