I want to avoid reevaluation of a value in method call. Untill now, I was doing this:
def some_method @some_method ||= begin # lot\'s of code end end
I would do it like this:
def filesize @filesize ||= calculate_filesize end private def calculate_filesize # ... end
So I'd just name the method differently, as I think it makes more sense.