Re: Question mark in attr_*

Methods which return booleans end with a question mark, by

Then you can add a battr_reader to any class…

FYI, I brought this issue up at, where
attr_ methods did what you meant with regards to ‘?’ and ‘!’.



This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs