deck-of-cards 0.0.5 → 0.0.6

Sign up to get free protection for your applications and to get access to all the features.
@@ -12,7 +12,7 @@ class Card
12
12
  end
13
13
 
14
14
  def value
15
- case rank
15
+ case @rank
16
16
  when 'Ace'
17
17
  14
18
18
  when 'King'
@@ -22,15 +22,15 @@ class Card
22
22
  when 'Jack'
23
23
  11
24
24
  else
25
- rank
25
+ @rank
26
26
  end
27
27
  end
28
28
 
29
29
  def to_s
30
- "#{rank} of #{suit}"
30
+ "#{@rank} of #{@suit}"
31
31
  end
32
32
 
33
33
  def inspect
34
- "<#{rank} of #{suit}>"
34
+ "<#{@rank} of #{@suit}>"
35
35
  end
36
36
  end
@@ -1,3 +1,3 @@
1
1
  class DeckOfCards
2
- VERSION = '0.0.5'
2
+ VERSION = '0.0.6'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: deck-of-cards
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: