From: Its Me Date: 2004-10-27T01:09:04+09:00 Subject: Inline YAML in Ruby code - possible? converse? 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? 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? Thanks!