thank you!.



On Wed, Jul 8, 2009 at 8:05 PM, Glenn Jackman<glennj / ncf.ca> wrote:
> At 2009-07-08 12:33PM, "salai" wrote:
>> =A0Dear all,
>>
>> =A0Can you help me how can I implement my own "has_key" method for "hash=
 class."
>>
>> =A0class Hash
>> =A0 =A0 =A0 def my_each_key(&block)
> [...]
>> =A0 =A0 =A0 def my_each_value(&block)
> [...]
>> =A0 =A0 =A0 def my_has_key?(key)
>
> =A0 =A0 =A0 =A0 =A0keys.include?(key)
>
>> =A0 =A0 =A0 end
>
> --
> Glenn Jackman
> =A0 =A0Write a wise saying and your name will live forever. -- Anonymous
>
>