Sha256: 5bdc955740231b7e3025bda30e8ba8568902d50f448b5fc6e68c8333efba2afb
Contents?: true
Size: 459 Bytes
Versions: 3
Compression:
Stored size: 459 Bytes
Contents
# frozen_string_literal: true 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-1.0.2 | lib/basic101/main.rb |
basic101-1.0.1 | lib/basic101/main.rb |
basic101-1.0.0 | lib/basic101/main.rb |