Sha256: 6018f4067c7647e662fecd21bd0c5b744d5d12b62fa33518a8fe9fbffe5c04d0
Contents?: true
Size: 275 Bytes
Versions: 2
Compression:
Stored size: 275 Bytes
Contents
$:.unshift File.dirname(__FILE__) require 'rubygems' require 'hpricot' require 'open-uri' class Lolcats class << self def gimme Hpricot(open("http://icanhascheezburger.com/?random").read). search('div.snap_preview p img')[0][:src] end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
remi-lolcats-0.1.0 | lib/lolcats.rb |
remi-lolcats-0.1.1 | lib/lolcats.rb |