From: Keith Chapman Date: 2007-11-13T17:43:41+09:00 Subject: Whats the ruby way of associating metadata with a function Hi All, I've pretty new to ruby and still getting to know how ruby works. I want to associate some metadata to a function. I saw a similar post down this line but didn't get the real answer. In javascript I'm used to associating metadata with a function as follows. foo.bar = "foobar"; function foo(){ } Whats the normal ruby practice to do this kind of a thing. Whats the ruby way of doing this. Your help is very much appreciated. Thanks, Keith. -- Posted via http://www.ruby-forum.com/.