[lnkForumImage]
TotalShareware - Download Free Software

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


 

Forums >

comp.lang.ruby

Class & modifiers modifiers

Miquel Oliete

1/25/2007 2:58:00 PM

Hi

I want to make a question to all the ruby-lang people (I hope that
somebody answered it).

I'm writing a database GUI and I'm coding the backend using modules
and classes.

If I have this situation:

module A

protected

def b_method()
return 'foo->A'
end

end

class B
include A

def b_method()
return 'foo->B'
end

end

Is B's method b_method() protected? Is it public? What the hell is this
method (;-) ) ?


Thanks in advance

Kind regards


Miquel


______________________________________________
LLama Gratis a cualquier PC del Mundo.
Llamadas a fijos y m?viles desde 1 c?ntimo por minuto.
http://es.voice...