A
Anita Anita
How to return the value of val?
If I write:
def active=(val)
if user.active
val = t
else
val = z
end
I never saw a method using name=(value), I cannot use active? because
val needs to be different than true or false.
Anyone? Have you seen such a method before? where? I need an example
If I write:
def active=(val)
if user.active
val = t
else
val = z
end
I never saw a method using name=(value), I cannot use active? because
val needs to be different than true or false.
Anyone? Have you seen such a method before? where? I need an example