From: Arlen Christian Mart Cuss Date: 2012-10-23T07:18:09+09:00 Subject: Re: Calling class method in instance method of another class --20cf3071c8124b2c1504ccad3ac3 Content-Type: text/plain; charset=ISO-8859-1 Could you give a concrete example? Right now your question is very abstract, and it sounds as if you're doing everything right, so the devil's most likely in the details. On 23/10/2012 8:32 AM, "Joz Private" wrote: > What is the best way of calling a class method in an instance method of > a different class? > > I have required the class of the class method at the top of my file, but > Ruby keeps giving me an 'uninitialized constant' error when is sees the > class name. > > Has it something to do with visibility? > > -- > Posted via http://www.ruby-forum.com/. > > --20cf3071c8124b2c1504ccad3ac3 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable

Could you give a concrete example? Right now your question is very abstr= act, and it sounds as if you're doing everything right, so the devil= 9;s most likely in the details.

On 23/10/2012 8:32 AM, "Joz Private" &= lt;lists@ruby-forum.com> wro= te:
What is the best way of calling a class method in an instance method of
a different class?

I have required the class of the class method at the top of my file, but Ruby keeps giving me an 'uninitialized constant' error when is sees= the
class name.

Has it something to do with visibility?

--
Posted via http://= www.ruby-forum.com/.

--20cf3071c8124b2c1504ccad3ac3--