Class: Tryruby::Runner

Inherits:
Object
  • Object
show all
Defined in:
lib/tryruby/runner.rb

Overview

Startup class of the shell

Class Method Summary collapse

Class Method Details

.start(tutorials) ⇒ Object



9
10
11
12
13
14
15
16
17
# File 'lib/tryruby/runner.rb', line 9

def self.start(tutorials)
  Ripl::Shell.include Tryruby::Shell
  Ripl::Commands.include Tryruby::Commands
  tutorials.each do |tutorial|
    tutorial.each { |level| Ripl.shell.levels << level }
    Ripl::Commands.include tutorial.commands
  end
  Ripl.start
end