Asp Forum
Home
|
Login
|
Register
|
Search
Forums
>
comp.lang.ruby
method def
Anita Anita
1/6/2009 9:08:00 PM
I know def active? but I need:
def active=(val)
and I cannot find a good example for it. I need val to equal a certain
value different that true or false when user is active.
Thank you,
Anita
--
Posted via
http://www.ruby-...
.
1 Answer
Roger Pack
1/8/2009 6:41:00 AM
0
Anita Anita wrote:
> I know def active? but I need:
> def active=(val)
> and I cannot find a good example for it. I need val to equal a certain
> value different that true or false when user is active.
looks like you know what you're doing. What context is this?
might want to google 'attr_accessor'
--
Posted via
http://www.ruby-...
.
Servizio di avviso nuovi messaggi
Ricevi direttamente nella tua mail i nuovi messaggi per
method def
Inserendo la tua e-mail nella casella sotto, riceverai un avviso tramite posta elettronica ogni volta che il motore di ricerca troverà un nuovo messaggio per te
Il servizio è completamente GRATUITO!
x
Login to ForumsZone
Login with Google
Login with E-Mail & Password