Class: DummyImage::Image
- Inherits:
-
Object
- Object
- DummyImage::Image
- Defined in:
- lib/image.rb
Instance Method Summary collapse
- #image ⇒ Object
-
#initialize(parser) ⇒ Image
constructor
A new instance of Image.
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
#image ⇒ Object
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 |