A
Albert Schlef
Let's say I have this code:
class Mambo
attr_accesstor :safe
end
Now,
'safe', in my case, is a boolean. Problem is, the getter will be named
'safe', whereas I want it to be 'safe?'.
In other words, how do I make the getter 'safe?' and the setter 'safe'
?
class Mambo
attr_accesstor :safe
end
Now,
'safe', in my case, is a boolean. Problem is, the getter will be named
'safe', whereas I want it to be 'safe?'.
In other words, how do I make the getter 'safe?' and the setter 'safe'
?