Sha256: 23405da1f4d74d71791d07f4a332d40d77ff47b5bbc5e4081023360aec181e95

Contents?: true

Size: 252 Bytes

Versions: 1

Compression:

Stored size: 252 Bytes

Contents

class Script::Engine
  def initialize
    @steps = []
  end

  def steps
    @steps
  end

  def register_step(headline, block)
    @steps << Script::Step.new(headline, block)
  end

  def run
    @steps.each do |step|
      step.run
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
script-0.0.2 lib/script/engine.rb