cube-tube/app/sprite.rb
Gordon Pedersen 6b3ac755de More refactoring of sprite code.
Also, adjusted some rubocop rules (with justifications)
2023-03-22 15:05:49 +11:00

14 lines
261 B
Ruby

# frozen_string_literal: true
# Module for managing and interacting with sprites.
module Sprite
class << self
def reset_all(args)
SPRITES.each { |_, v| args.gtk.reset_sprite(v) }
end
def for(key)
SPRITES.fetch(key)
end
end
end