# File lib/quiz1/t/solutions/Moses Hohman/deck.rb, line 7 def initialize(order=nil) if order.nil? @order = Array.new(NUM_CARDS) { |x| x+1 } else @order = order.collect { |val| val.instance_of?(Range) ? val.to_a : val }.flatten @order.collect! { |val| Card.parse(val).code } end end