Created
July 9, 2020 20:52
-
-
Save hadrienblanc/9a5a9ab64e6556174f774a68fffab093 to your computer and use it in GitHub Desktop.
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 Testo | |
def run | |
puts "hello world !" | |
puts my_var | |
puts my_var | |
puts my_var | |
end | |
def my_var | |
@data ||= generate_data | |
end | |
def generate_data | |
puts "LONG PROCESS" | |
42 | |
end | |
end | |
Testo.new.run |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment