sayoyo
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.
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
sayoyo
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.
Yahoo | Mail, Weather, Search, Politics, News, Finance, Sports & Videos
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com