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
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
Anita A. 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’
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs