Sha256: 0861ab4be2392667225e6a4694047a315c713d9075ec8b3140daaa762f9e465d
Contents?: true
Size: 428 Bytes
Versions: 3
Compression:
Stored size: 428 Bytes
Contents
module Basic101 class Main def initialize(argv) @args = Arguments.new(argv) end def run program = Program.load(ARGF) runtime = Runtime.new(:program => program) if @args.transcript runtime.transcript = Transcript.make(@args.filenames.first) end runtime.randomize if @args.randomize runtime.run rescue Error => e puts e exit 1 end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
basic101-0.4.0 | lib/basic101/main.rb |
basic101-0.2.0 | lib/basic101/main.rb |
basic101-0.1.0 | lib/basic101/main.rb |