Skip to content

Instantly share code, notes, and snippets.

View maryannvalentine's full-sized avatar

maryannvalentine

View GitHub Profile
@maryannvalentine
maryannvalentine / wine_glass.rb
Created June 13, 2012 07:09 — forked from reneedv/wine_glass.rb
Wine Glass Homework 1
class WineGlass
attr_accessor :material, :volume, :stem_length, :wine_volume
def pretty_print_material
"Happy Dance Party : #{material}"
end
def pretty_print_stuff
"This wine glass is cool. It has a stem length of #{stem_length} and a volume of #{volume}ml"
end
def pretty_print_everything
"My #{material} wine glass, that has a stem length of #{stem_length}, is cool because it holds #{volume}ml"