Module: Kittenfy

Defined in:
lib/kittenfy.rb,
lib/kittenfy/version.rb

Constant Summary collapse

VERSION =
"0.1.1"

Class Method Summary collapse

Class Method Details

.pic(length, width, filename) ⇒ Object



6
7
8
9
10
# File 'lib/kittenfy.rb', line 6

def self.pic length,width,filename
  File.open(filename, 'wb') do |fo|
    fo.write open("http://placekitten.com/g/#{length}/#{width}").read 
  end
end