Ruby Isn’t Too Bad

I haven’t really had a whole time to play around with Ruby, but I managed to write a little script that I call boobs.rb.  It was my attempt to take advantage of Ruby’s ability to define your own functions. Maybe if I’m lucky I would be able to actually define my own bra size too.

#!/usr/bin/ruby


def sayBoobs(name)
result = "Hey, " + name + " wears a size DD. \n "
return result
end


puts sayBoobs("Nessa")

This puts out something that looks like this:

Be Sociable, Share!

Leave a Reply

Your email address will not be published. Required fields are marked *