Skip to content

Instantly share code, notes, and snippets.

@zackperdue
Created March 5, 2014 01:15
Show Gist options
  • Save zackperdue/9359283 to your computer and use it in GitHub Desktop.
Save zackperdue/9359283 to your computer and use it in GitHub Desktop.
Look inside test()
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