From: Rick DeNatale Date: 2009-08-26T08:57:36+09:00 Subject: Re: Calling method from another class On Mon, Aug 24, 2009 at 6:12 PM, Kostas Lps wrote: > Hi guys, > i have 2 classes say class A and class B. How can the A object that i'll > create to call a class B method???? > Say we have this code: > > class A >  def printA >    puts = "Class A method" >  end > end > > class B >  def printB >    puts "Class B method" >  end > end > > I want to make something like this: > a = A.new > a.printB > > I this possible someway??? I dont want to use modules. Well, you seem to have lobbed this question into the list and gone away, so it's hard to discover whether you're satisfied with the answers so far, or if you've even seen them. Nobody has asked this but I have to. Why do you feel a need to do this? It's like wanting to take the square root of a string, or uppercasing an integer. -- Rick DeNatale Blog: http://talklikeaduck.denhaven2.com/ Twitter: http://twitter.com/RickDeNatale WWR: http://www.workingwithrails.com/person/9021-rick-denatale LinkedIn: http://www.linkedin.com/in/rickdenatale