Class: DummyImage::Image

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

Instance Method Summary collapse

Constructor Details

#initialize(parser) ⇒ Image

Returns a new instance of Image.



5
6
7
# File 'lib/image.rb', line 5

def initialize parser
    @parser = parser
end

Instance Method Details

#imageObject



10
11
12
13
14
15
# File 'lib/image.rb', line 10

def image
    unless File.exists? image_name
        create_image!
    end
    image_name
end