Sha256: e8492d2989f7f42396dc7f21586af0973114d61fbd6f91cb07d4469ea9292aa9
Contents?: true
Size: 422 Bytes
Versions: 3
Compression:
Stored size: 422 Bytes
Contents
require_relative '../args/card_range' require_relative '../args/draw' module Squib class Deck # DSL method. See http://squib.readthedocs.io def background(opts = {}) range = Args::CardRange.new(opts[:range], deck_size: size) draw = Args::Draw.new(custom_colors).load!(opts, expand_by: size, layout: layout, dpi: dpi) range.each { |i| @cards[i].background(draw.color[i]) } end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
squib-0.15.2 | lib/squib/api/background.rb |
squib-0.15.1 | lib/squib/api/background.rb |
squib-0.14.2 | lib/squib/api/background.rb |