Module: AnotherToyRobot

Defined in:
lib/another_toy_robot.rb,
lib/another_toy_robot/version.rb

Constant Summary collapse

VERSION =
"0.1.13".freeze

Class Method Summary collapse

Class Method Details

.mainObject



5
6
7
8
9
10
11
12
13
14
# File 'lib/another_toy_robot.rb', line 5

def self.main
  client = Client.new

  loop do
    print "Input command: "
    input = gets
    break if input =~ /^\s*exit\s+/
    client.command_for Input.new(input)
  end
end