How can I add a new fct to the class Hash


#1

Hi,

We use a lot of “hash” in our program and we want to
add a new function to the class, does someone know how
to do this???

Thanks you very much

Saiho

The mind is its own place, and in itself.
Can make a Heaven of Hell, a Hell of Heaven.

http://www.geocities.com/sayoyo/


Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com


#2

class Hash
def my_method(params)

end
end

Classes are always open and can be extended like so.

Saiho sayoyo wrote:

Hi,

We use a lot of “hash” in our program and we want to
add a new function to the class, does someone know how
to do this???

Thanks you very much

Saiho

The mind is its own place, and in itself.
Can make a Heaven of Hell, a Hell of Heaven.

http://www.geocities.com/sayoyo/


Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com