lib/script.rb in script-0.0.1 vs lib/script.rb in script-0.0.2

- old
+ new

@@ -1,5 +1,21 @@ require "script/version" +require "script/engine" +require "script/step" -module Script - # Your code goes here... +class Script + def initialize + @engine = Script::Engine.new + end + + def engine + @engine + end + + def step(headline, &block) + @engine.register_step(headline, block) + end + + def run + @engine.run + end end