Module: Inform::App

Includes:
Options
Defined in:
lib/runtime/runtime.rb

Overview

The App module

Instance Method Summary collapse

Methods included from Options

#demand, #parse_arguments

Instance Method Details

#main(args = parse_arguments) ⇒ Object



307
308
309
310
311
312
# File 'lib/runtime/runtime.rb', line 307

def main(args = parse_arguments)
  Logging.log_level = args[:log_level]
  runtime = Inform::Runtime.init(args)
  runtime.load_game
  runtime.play_game
end