Module: Kernel

Defined in:
lib/goodies/lwr.rb

Instance Method Summary collapse

Instance Method Details

#get(url) ⇒ Object



5
6
7
8
9
10
11
12
# File 'lib/goodies/lwr.rb', line 5

def get(url)
	uri = URI.parse(url)
	if uri.scheme
		return open(url).read
	else
		return open("http://" + url).read
	end
end