Created
March 4, 2018 09:23
-
-
Save KamaKAzii/89994e5677c9e5e4244652c7345a2ebb to your computer and use it in GitHub Desktop.
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
class Sup | |
attr_accessor :foo | |
def foo | |
self[:foo] ||= calc_foo | |
end | |
private | |
def calc_foo | |
# do soem shit that calcs which is expenno | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment