Re: Accessing Variables from Within a Module

2012-06-11 Thread Robert Klemme
On Sun, Jun 10, 2012 at 8:13 PM, Doug Jolley wrote: >> module MyModule >>  def MyModule.test1(obj) >>    puts(obj.fname()) >>  end >> end > > YES!!! This is the solution to my problem! Strangely, I came up with the > same thing as I reflected on the issue over last evening. Good. > When I post a

Re: Accessing Variables from Within a Module

2012-06-10 Thread Robert Klemme
On Sun, Jun 10, 2012 at 4:15 AM, Doug Jolley wrote: >> From the description I'm guessing you want to use the module as a mixin >> to add methods to the class. In this case you don't even need the >> accessor methods. If you include the module in the class, the methods of >> the module have direct