Re: [ruby-102] [QUIZ] My Little Ruby Valentine (#192)

From: Mark Wilkins
Sent on: Monday, February 16, 2009 5:21 PM
So...I'm *phoning this one in*.  It's like when Valentine's day
actually comes, and you don't have anything for your valentine, so you
rush into the gas station, hoping they have chocolate in a pretty box.
 Something like that, anyway.

This is just a little code that goes out to the ASCII art site,, and grabs a few text files of art that might be
appropriate for the holiday:

require 'rubygems'
require 'open-uri'

@urlz = []
@urlz << "http://www.ascii-...­"
@urlz << "http://www.ascii-...­"
@urlz << "http://www.ascii-...­"

@urlz.each do |url|
  open(url) do |page|
    page.readlines.each {|line| puts line}

Our Sponsors

  • Josh Miller

    I pay for the Meetup, but beer is on you.

People in this
Meetup are also in:

Log in

Not registered with us yet?

Sign up

Meetup members, Log in

By clicking "Sign up" or "Sign up using Facebook", you confirm that you accept our Terms of Service & Privacy Policy