lib/squib/deck.rb in squib-0.11.0 vs lib/squib/deck.rb in squib-0.12.0

- old
+ new

@@ -24,11 +24,11 @@ extend Forwardable # Attributes for the width, height (in pixels) and number of cards # These are expected to be immuatble for the life of Deck # @api private - attr_reader :width, :height, :cards + attr_reader :width, :height, :cards, :progress_bar # Delegate these configuration options to the Squib::Conf object def_delegators :conf, :antialias, :backend, :count_format, :custom_colors, :dir, :img_dir, :prefix, :text_hint, :typographer # :nodoc: @@ -71,9 +71,10 @@ @layout = LayoutParser.new(dpi).load_layout(layout) enable_groups_from_env! if block_given? instance_eval(&block) # here we go. wheeeee! end + @cards.each { |c| c.finish! } end # Directly accesses the array of cards in the deck # # @api private