From: David Vallner Date: 2006-02-15T06:03:36+09:00 Subject: Re: How to pass a function as argument in ruby? Dňa Utorok 14 Február 2006 07:03 the_crazy88 napísal: > Though I tried your suggestions, something worked out much better. I > just needed to pass a reference to the calling class with the argument > self. That way I can call back functions just by executing them. For > example: > There you go, proper OO instead of functional for the heck of it. > class Example > attr_reader :show_info The above line of code is completely unnecessary. > (snip) David Vallner