[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Getting the name of a class that's in a module

Clint

3/17/2006 9:24:00 PM

'some_object.class.to_s' doesn't work because it returns the entire hierarchy,
i.e 'SomeModule::SomeClass'. I could do some string ops on that but it seems
there would be an easier way. Here's an example:

class MenuStyle
class Button < Style
end
end

class View
def initialize()
@delegate = MenuStyle.const_get( self.class.to_s )
end
end


Thanks,
Mike
12 Answers

Ara.T.Howard

3/17/2006 10:12:00 PM

0

Politikus

5/19/2010 11:38:00 AM

0

On May 18, 9:04 am, "George Fernandez <abalwaleedbinta...@gmail.com>
wrote:

> OLD Thai  King'  s   POWER  is  fading ,


What can the king say...? :-(

<<< Fast Forward Asia <<<


charlie vietcong

5/19/2010 11:55:00 PM

0

what should the Old Thai King say ?


the Old Thai King should ask Abhisit and Limthongkul to
leave Thailand


just like Thaksin .



n May 19, 4:38 am, Politikus <ffa...@mac.com> wrote:
> On May 18, 9:04 am, "George  Fernandez <abalwaleedbinta...@gmail.com>
> wrote:
>
> > OLD Thai  King'  s   POWER  is  fading ,
>
> What can the king say...? :-(
>
> <<< Fast Forward Asia <<<

Prophet Mohamed the child Fucker

5/24/2010 5:26:00 AM

0

OLD THAI King is about the same as OLD KHMER King


Budha wants these two kings to come home to Bhuda .




n May 20, 6:54 am, charlie vietcong <vietcong.charlie...@gmail.com>
wrote:
> what  should  the  Old  Thai  King  say  ?
>
> the  Old   Thai  King  should  ask    Abhisit and  Limthongkul  to
> leave  Thailand
>
> just  like  Thaksin .
>
> n May 19, 4:38 am, Politikus <ffa...@mac.com> wrote:
>
> > On May 18, 9:04 am, "George  Fernandez <abalwaleedbinta...@gmail.com>
> > wrote:
>
> > > OLD Thai  King'  s   POWER  is  fading ,
>
> > What can the king say...? :-(
>
> > <<< Fast Forward Asia <<<

Fucking Komin the Pedophile Turd

5/24/2010 9:47:00 AM

0



Fucking Failure Komin the dark-skinned Khmer-Fucker frequently boasts
of fucking under-aged prostitutes. When challenged, he says "To each
his cup of Tea", and also that he is helping the families of the
children he fucks escape a life of poverty.

What do you think? What the video below and tell Komin the Khmer
Child-Fucker whether he's right.

http://www.youtube.com/watch?v=4...

his Excellency Itoh , the Japanese Advisor to the Manchu Imperial Government

5/25/2010 12:53:00 AM

0

the Thai King has lost his power, just like Norodom
Sihanouk


n May 23, 10:25 pm, prophet Muhammud the Child Fucker
<mohamedholy...@gmail.com> wrote:
> OLD  THAI  King  is  about    the  same  as  OLD   KHMER  King
>
> Budha  wants  these  two  kings   to  come  home  to  Bhuda .
>
> n May 20, 6:54 am, charlie vietcong <vietcong.charlie...@gmail.com>
> wrote:
>
> > what  should  the  Old  Thai  King  say  ?
>
> > the  Old   Thai  King  should  ask    Abhisit and  Limthongkul  to
> > leave  Thailand
>
> > just  like  Thaksin .
>
> > n May 19, 4:38 am, Politikus <ffa...@mac.com> wrote:
>
> > > On May 18, 9:04 am, "George  Fernandez <abalwaleedbinta...@gmail.com>
> > > wrote:
>
> > > > OLD Thai  King'  s   POWER  is  fading ,
>
> > > What can the king say...? :-(
>
> > > <<< Fast Forward Asia <<<

Fucking Komin the Pedophile Turd

5/25/2010 2:24:00 PM

0

On May 25, 8:53 am, "Major general Sok Kong , the Senior
Vietnamese military Residence of Sokimex in Cambodia"
<mussahassan.has...@gmail.com> wrote:
> the  Thai   King  has  lost   his  power,  just  like  Norodom
> Sihanouk
>
> n May 23, 10:25 pm, prophet Muhammud  the  Child  Fucker
>
>
>
> <mohamedholy...@gmail.com> wrote:
> > OLD  THAI  King  is  about    the  same  as  OLD   KHMER  King
>
> > Budha  wants  these  two  kings   to  come  home  to  Bhuda .
>
> > n May 20, 6:54 am, charlie vietcong <vietcong.charlie...@gmail.com>
> > wrote:
>
> > > what  should  the  Old  Thai  King  say  ?
>
> > > the  Old   Thai  King  should  ask    Abhisit and  Limthongkul  to
> > > leave  Thailand
>
> > > just  like  Thaksin .
>
> > > n May 19, 4:38 am, Politikus <ffa...@mac.com> wrote:
>
> > > > On May 18, 9:04 am, "George  Fernandez <abalwaleedbinta...@gmail.com>
> > > > wrote:
>
> > > > > OLD Thai  King'  s   POWER  is  fading ,
>
> > > > What can the king say...? :-(
>
> > > > <<< Fast Forward Asia <<<

Fucking Failure Komin the dark-skinned Khmer-Fucker frequently boasts
of fucking under-aged prostitutes. When challenged, he says "To each
his cup of Tea", and also that he is helping the families of the
children he fucks escape a life of poverty.

What do you think? What the video below and tell Komin the Khmer
Child-Fucker whether he's right.

http://www.youtube.com/watch?v=4...

Chairman Mao , expert fucker of Chinese High School Girl 's cunts in China

5/26/2010 12:46:00 AM

0

George Fernandez posting as the Fucking Komin the Pedophile
Turd is trying to block this subject .



the Thai King is completely fucked up .


Norodom Sihanouk is completely fucked up .


it ' s time we Chinese take over Thailand ,Cambodia and
Laos .





n May 25, 7:53 am, "Major general Sok Kong , the Senior
Vietnamese military Residence of Sokimex in Cambodia"
<mussahassan.has...@gmail.com> wrote:
> the  Thai   King  has  lost   his  power,  just  like  Norodom
> Sihanouk
>
> n May 23, 10:25 pm, prophet Muhammud  the  Child  Fucker
>
> <mohamedholy...@gmail.com> wrote:
> > OLD  THAI  King  is  about    the  same  as  OLD   KHMER  King
>
> > Budha  wants  these  two  kings   to  come  home  to  Bhuda .
>
> > n May 20, 6:54 am, charlie vietcong <vietcong.charlie...@gmail.com>
> > wrote:
>
> > > what  should  the  Old  Thai  King  say  ?
>
> > > the  Old   Thai  King  should  ask    Abhisit and  Limthongkul  to
> > > leave  Thailand
>
> > > just  like  Thaksin .
>
> > > n May 19, 4:38 am, Politikus <ffa...@mac.com> wrote:
>
> > > > On May 18, 9:04 am, "George  Fernandez <abalwaleedbinta...@gmail.com>
> > > > wrote:
>
> > > > > OLD Thai  King'  s   POWER  is  fading ,
>
> > > > What can the king say...? :-(
>
> > > > <<< Fast Forward Asia <<<

Fucking Komin the Pedophile Turd

5/26/2010 10:29:00 AM

0



Fucking Failure Komin the dark-skinned Khmer-Fucker frequently boasts
of fucking under-aged prostitutes. When challenged, he says "To each
his cup of Tea", and also that he is helping the families of the
children he fucks escape a life of poverty.

What do you think? What the video below and tell Komin the Khmer
Child-Fucker whether he's right.

http://www.youtube.com/watch?v=4...

George Fernandez , now posting as Fucking Komin the Pedophile Turd , was also posting as George

5/27/2010 1:40:00 AM

0

may be the Thai King got fed up with
so many Chinese faking as Thai in Thailand ?


all political Players now in Thailand are all 100% pure
Chinese ,
just like in Singapore /




On May 26, 7:45 am, "Chairman Mao , expert fucker of Chinese High
School Girl 's cunts in China" <monsteroooodk...@gmail.com> wrote:
> George  Fernandez posting as  the  Fucking  Komin the  Pedophile
> Turd  is  trying  to  block  this  subject .
>
> the  Thai  King   is  completely  fucked  up .
>
> Norodom  Sihanouk is  completely  fucked  up .
>
> it '  s    time  we  Chinese  take over  Thailand  ,Cambodia  and
> Laos .
>
> n May 25, 7:53 am, "Major  general  Sok  Kong ,  the  Senior
> Vietnamese  military Residence of  Sokimex  in  Cambodia"
>
>
>
> <mussahassan.has...@gmail.com> wrote:
> > the  Thai   King  has  lost   his  power,  just  like  Norodom
> > Sihanouk
>
> > n May 23, 10:25 pm, prophet Muhammud  the  Child  Fucker
>
> > <mohamedholy...@gmail.com> wrote:
> > > OLD  THAI  King  is  about    the  same  as  OLD   KHMER  King
>
> > > Budha  wants  these  two  kings   to  come  home  to  Bhuda .
>
> > > n May 20, 6:54 am, charlie vietcong <vietcong.charlie...@gmail.com>
> > > wrote:
>
> > > > what  should  the  Old  Thai  King  say  ?
>
> > > > the  Old   Thai  King  should  ask    Abhisit and  Limthongkul  to
> > > > leave  Thailand
>
> > > > just  like  Thaksin .
>
> > > > n May 19, 4:38 am, Politikus <ffa...@mac.com> wrote:
>
> > > > > On May 18, 9:04 am, "George  Fernandez <abalwaleedbinta...@gmail.com>
> > > > > wrote:
>
> > > > > > OLD Thai  King'  s   POWER  is  fading ,
>
> > > > > What can the king say...? :-(
>
> > > > > <<< Fast Forward Asia <<<- Hide quoted text -
>
> - Show quoted text -