lib/script.rb in script-0.0.3 vs lib/script.rb in script-0.0.4
- old
+ new
@@ -4,9 +4,15 @@
require "script/output"
require "colorize"
class Script
+ def self.define
+ script = new
+ yield(script)
+ script.run
+ end
+
def initialize
@engine = Script::Engine.new
end
def engine