Created
June 4, 2014 03:55
-
-
Save clarknelson/d6e85a16a35db142002b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 class DiceSet | |
10 :attr_accessor :values | |
11 def roll(set) | |
12 @values = set | |
13 end | |
14 end | |
--- | |
irb | |
--- | |
dice = DiceSet.new | |
dice.roll(4) | |
dice.values #NoMethodError |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment