Sha256: 53a457694f83838d566f136021e62e43b507ab56a7ab0c563a4c8947d12dc13c
Contents?: true
Size: 320 Bytes
Versions: 4
Compression:
Stored size: 320 Bytes
Contents
module Stairs class Script def initialize(filename) @filename = filename @script = File.read(@filename) end def run! puts "= Running script #{filename}" run end def run Step.new.instance_eval(script) end private attr_reader :script, :filename end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
stairs-0.2.0 | lib/stairs/script.rb |
stairs-0.1.0 | lib/stairs/script.rb |
stairs-0.0.2 | lib/stairs/script.rb |
stairs-0.0.1 | lib/stairs/script.rb |