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 8, 2012 05:54
Wine Glass Homework (write two more tests)
class WineGlass
attr_accessor :material, :volume, :stem_length
def pretty_print_material
"Material : #{material}"
end
def pretty_print_stuff
return "This wine glass is cool. It has a stem length of 5 and a volume of 69ml"
end
end
@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"