class Squib::DSL::Hand
Attributes
deck[R]
dsl_method[R]
Public Class Methods
accepted_params()
click to toggle source
# File lib/squib/dsl/hand.rb, line 25 def self.accepted_params %i( file dir range radius angle_range margin fill_color trim trim_radius ) end
new(deck, dsl_method)
click to toggle source
# File lib/squib/dsl/hand.rb, line 19 def initialize(deck, dsl_method) @deck = deck @dsl_method = dsl_method @bar = deck.progress_bar end
Public Instance Methods
run(opts)
click to toggle source
# File lib/squib/dsl/hand.rb, line 33 def run(opts) warn_if_unexpected opts range = Args.extract_range opts, deck sheet = Args.extract_sheet opts, deck, {file: 'hand.png'} hand = Args.extract_hand_special opts, deck deck.render_hand(range, sheet, hand) end