lib/nakal/base_screen.rb in nakal-0.0.5 vs lib/nakal/base_screen.rb in nakal-0.0.6
- old
+ new
@@ -3,10 +3,9 @@
class BaseScreen
attr_accessor :image, :name
def initialize file_name, mode = :load, image = nil
- Nakal.create_image_dir
@name = file_name
@image = image
capture if mode.eql?(:capture)
image.nil? ? @image = Magick::Image.read("#{Nakal.image_location}/#{@name}.png")[0] : @image=image
end