Created
March 2, 2011 15:24
-
-
Save simi/851086 to your computer and use it in GitHub Desktop.
Don't like this
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| attr_reader :loaded | |
| def loaded? | |
| loaded = @loaded ? true : false | |
| @loaded = true | |
| return loaded | |
| end |
Author
I know it is not good name. But I know how to name it.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Why exactly does a method that ends with a question mark change the ivar? Seems confusing to me… Anyway, what about something like this: