Jano Svitok
3/2/2008 10:37:00 PM
On Sun, Mar 2, 2008 at 11:00 PM, Sebastian Hungerecker
<sepp2k@googlemail.com> wrote:
> Andrei Maxim wrote:
> > Since ENV is a hash
>
> No, it's not.
> >> ENV.is_a? Hash
> => false
It quacks like a hash, so it must be a hash ;-)
Of course, it's not a real Hash instance, but you can work with it as
though it was a Hash.
> ENV.each { |key, value| puts "#{lkey} - #{value}" }
There's a typo: not #{lkey}, byt #{key}
Jano