Sha256: ea04c344fe195414b71e473d4a5ca3e70e80054885eee9e99b6768bd4a42c70a
Contents?: true
Size: 247 Bytes
Versions: 2
Compression:
Stored size: 247 Bytes
Contents
module RubyQuiz1 class Deck include Enumerable def cards @cards ||= [] end def each cards.each { |card| yield card } end def size cards.size end end end require_relative "decks/standard_deck"
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ruby_quiz_1-0.0.2 | lib/ruby_quiz_1/deck.rb |
ruby_quiz_1-0.0.1 | lib/ruby_quiz_1/deck.rb |