Hi,

On Fri, Aug 25, 2006 at 04:17:51AM +0900, Nicolas Despr?s wrote:
> On 8/24/06, Peter Bailey <pbailey / bna.com> wrote:
> >So, all of the "data" entries in your "filename" arrays are simply
> >values? So, each "filename" row is an array in itself? Is that what you
> >mean by "inline array?"
> 
> No. I used this phrase because it is the one used in the Yaml cookbook:
> 
> http://yaml4r.sourceforge.net/cookbook/
> 
> I just said that there are two ways to write an array in Yaml:
> 
> - foo
> - bar
> 
> or
> 
> [ foo, bar ]

Right, the 'inline' is a formatting style.

  >> require 'yaml'
  => true

  >> ary = [1,2,3]
  => [1, 2, 3]

  >> y ary
  --- 
  - 1
  - 2
  - 3
  => nil

  >> def ary.to_yaml_style; :inline; end
  => nil

  >> y ary
  --- [1, 2, 3]
  => nil

_why