cleanup
parent
c473e07c2e
commit
02bf443abf
|
|
@ -33,7 +33,7 @@ module Squib
|
||||||
:img_dir, :prefix, :text_hint, :typographer
|
:img_dir, :prefix, :text_hint, :typographer
|
||||||
# :nodoc:
|
# :nodoc:
|
||||||
# @api private
|
# @api private
|
||||||
attr_reader :layout, :conf, :dpi, :font, :caller_loc
|
attr_reader :layout, :conf, :dpi, :font
|
||||||
|
|
||||||
#
|
#
|
||||||
# deck.size is really just @cards.size
|
# deck.size is really just @cards.size
|
||||||
|
|
@ -69,7 +69,6 @@ module Squib
|
||||||
@height = Args::UnitConversion.parse height, dpi
|
@height = Args::UnitConversion.parse height, dpi
|
||||||
cards.times{ |i| @cards << Squib::Card.new(self, @width, @height, i) }
|
cards.times{ |i| @cards << Squib::Card.new(self, @width, @height, i) }
|
||||||
@layout = LayoutParser.new(dpi).load_layout(layout)
|
@layout = LayoutParser.new(dpi).load_layout(layout)
|
||||||
@caller_loc = caller_locations[0] # useful for error messages
|
|
||||||
enable_groups_from_env!
|
enable_groups_from_env!
|
||||||
if block_given?
|
if block_given?
|
||||||
instance_eval(&block) # here we go. wheeeee!
|
instance_eval(&block) # here we go. wheeeee!
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue