lib/cards_lib/deck.rb in cards_lib-0.0.3 vs lib/cards_lib/deck.rb in cards_lib-0.0.4
- old
+ new
@@ -32,14 +32,10 @@
def present?
!empty?
end
def size
- if @top <= _cards.size
- _cards[@top..-1].size
- else
- 0
- end
+ _cards[@top..-1].size
end
def count
size
end