------art_32155_25243802.1151912391085
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

On 7/3/06, aa bb <isengoi / gmail.com> wrote:
>
> how do i unset a hash member (as in php)?


Hash.delete(key)...

hsh   'a' "test", "b" "testagain" }
hsh.delete('a')
hsh is now {"b"testagain"}




h['a']  aaa'
> h['b']  bbb'
> h['c']  ccc'
>
> h >> { 'a' 'aaa', 'b' 'bbb', 'c' 'ccc' }
>
> something like this:
> h['b'].delete
> h >> { 'a' 'aaa', 'c' 'ccc' }
>
> not like this:
> h['b']  il
> h >> { 'a' 'aaa', 'b' nil, 'c' 'ccc' }
>
> thanks. :)
>
> --
> Posted via http://www.ruby-forum.com/.
>
>


-- 
Daniel Baird
http://tiddlyspot.com (free, effortless TiddlyWiki hosting)
http://danielbaird.com (TiddlyW;nks! :: Whiteboard Koala :: Blog :: Things
That Suck)

------art_32155_25243802.1151912391085--