Created
March 6, 2012 06:49
-
-
Save terotil/1984406 to your computer and use it in GitHub Desktop.
which approach is better?
This file contains 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
class Stat | |
def initialize(raw) | |
@raw = raw | |
end | |
def file | |
@file ||= parse_file_from_raw | |
end | |
def name | |
@file ||= parse_name_from_raw | |
end | |
private | |
# parsing thingies | |
end |
sent-hil
commented
Mar 6, 2012
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment