Skip to content

aarai/Homework_for_20120515

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

make a Candy class
  has_chocolate? (boolean)
  name
  chewy? (boolean)
  gluten_free? (boolean)
  calorie_count
  main_color
  
make three different candies in an array
use git
use different files
make these methods:
  has_chocolate_and_is_chewy?
  leave_in_the_sun
    if has chocolate, say "help i'm melting"
    if name is "Pop Tart" say "mmmmmm"
  put_in_freezer
    if used to be "chewy" now it is not "chewy"
  low_calorie?
    true if calorie_count is below 5

make a generic method to display all attributes of a candy

BONUS: make a method (IN Candy) called "friends" which returns alll Candies in the global candy array which have the same name.

**preq to bonus: make ten candies.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published