Module: Doodler

Defined in:
lib/doodler.rb,
lib/doodler/runner.rb,
lib/doodler/version.rb,
lib/doodler/strategy.rb,
lib/doodler/notification.rb

Defined Under Namespace

Modules: Notification Classes: Runner, Strategy

Constant Summary collapse

NoImageFound =
"Hmm, I didn't see any picture here.."
ImageSizeInconsistency =
"Oops, the two pictures have different sizes.."
FailToImprove =
"Hm, my doodling doesn't look like the picture you provided at all! Let me try again.."
Exit =
"I am done drawing. Go check out how I do!"
VERSION =
"1.1.1"

Class Method Summary collapse

Class Method Details

.draw(image, strategy) ⇒ Object



13
14
15
16
# File 'lib/doodler.rb', line 13

def self.draw(image, strategy)
  raise Doodler::NoImageFound unless image
  Doodler::Runner.draw!(image, strategy)
end