On Wed, Jun 4, 2014 at 12:39 PM, Roelof Wobben <r.wobben / home.nl> wrote:

> I noticed one things. The output shows the arrays but not in a array as I
> expected.

What do you mean by that?  Output is as expected:

irb(main):008:0> data.select{ |data2| data2[:sex] == :f }
=> [{:age=>24, :sex=>:f}, {:age=>23, :sex=>:f}]

Cheers

robert

-- 
[guy, jim].each {|him| remember.him do |as, often| as.you_can - without end}
http://blog.rubybestpractices.com/