Created
March 5, 2014 01:15
-
-
Save zackperdue/9359283 to your computer and use it in GitHub Desktop.
Look inside test()
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
require 'open-uri' | |
class Participants | |
def test | |
participant_data do |io| | |
# This never gets called | |
end | |
end | |
def participant_data | |
@participant_data ||= open('http://www.website.com/participant_list.txt') | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment