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
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-- Posted via http://www.ruby-forum.com/.