danbarry-poker 1.2 → 1.2.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/deck.rb +4 -1
  2. metadata +2 -2
data/lib/deck.rb CHANGED
@@ -1,6 +1,6 @@
1
1
  module Poker
2
2
  class Deck
3
- attr_accessor :cards
3
+ attr_reader :cards
4
4
 
5
5
  def initialize
6
6
  @cards = Card::SUITS.map do |suit|
@@ -21,5 +21,8 @@ module Poker
21
21
  raise IndexError if @card_index + quantity > 52
22
22
  @cards[@card_index...(@card_index += quantity)]
23
23
  end
24
+
25
+ private
26
+ attr_writer :cards
24
27
  end
25
28
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: danbarry-poker
3
3
  version: !ruby/object:Gem::Version
4
- version: "1.2"
4
+ version: 1.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dan Barry
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-01-21 00:00:00 -08:00
12
+ date: 2009-02-14 00:00:00 -08:00
13
13
  default_executable:
14
14
  dependencies: []
15
15