Module: Airsprite::Base
- Defined in:
- lib/airsprite/base.rb
Instance Method Summary collapse
Instance Method Details
#run ⇒ Object
3 4 5 6 7 8 9 10 11 12 |
# File 'lib/airsprite/base.rb', line 3 def run Airsprite::Config.parse_config_file # each directory underneath Airsprite::Config.path is a sheet Dir["#{Airsprite::Config.path}/*/"].each do |dir| spritesheet = SpriteSheet.new(dir.split('/').last, dir) spritesheet.place spritesheet.output end end |
#twos ⇒ Object
14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 |
# File 'lib/airsprite/base.rb', line 14 def twos [ 2, 4, 8, 16, 32, 64, 128, 256, 512, 1024, 2048 ] end |