Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Paste this line into the initialize method, with the other instance variables.
- @category = String.new
- paste these two methods outside of the initialize method.
- # ... Method to set value of @category
- def setCategory (category)
- @category = category
- end
- # ... Method to read value of @category
- def getCategory
- @category
- end
Add Comment
Please, Sign In to add comment