lib/meme.rb
##
# Sometimes your meme will have an error, fix it!
Sometimes your meme will have an error, fix it!
Sometimes your meme will have an error fix it!
def fetch link
      url = URI.parse link
      res = nil
      Net::HTTP.start url.host do |http|
        get = Net::HTTP::Get.new url.request_uri
        get['User-Agent'] = USER_AGENT
        res = http.request get
      end
      res.body
    end
def fetch link url = URI . parse link res = nil Net :: HTTP . start url . host do | http | get = Net :: HTTP :: Get . new url . request_uri get [ 'User-Agent' ] = USER_AGENT res = http . request get end res . body end
Sometimes your meme will have an error, fix it!
Sometimes your meme will have an error fix it!
link