Class: Dedalus::Elements::ImageRepository

Inherits:
Object
  • Object
show all
Defined in:
lib/dedalus/elements/image.rb

Class Method Summary collapse

Class Method Details

.lookup(path) ⇒ Object



4
5
6
7
8
# File 'lib/dedalus/elements/image.rb', line 4

def self.lookup(path)
  @images ||= {}
  @images[path] ||= Gosu::Image.new(path)
  @images[path]
end