Sha256: d765275f7d45c3962d9c9d39c780034ae2eb367b2cb5c03b003c82b106f1bd9f

Contents?: true

Size: 174 Bytes

Versions: 10

Compression:

Stored size: 174 Bytes

Contents

require 'readline.rb'

loop do
  line = Readline::readline('> ')
  Readline::HISTORY.push(line)
  puts "You typed: #{line}"

  if line =~ /exit|quit/ then
    exit
  end
end

Version data entries

10 entries across 10 versions & 4 rubygems

Version Path
chess_engine-0.0.2 vendor/bundle/gems/rb-readline-0.5.5/examples/tinyirb.rb
chess_engine-0.0.1 vendor/bundle/gems/rb-readline-0.5.5/examples/tinyirb.rb
rb-readline-0.5.5 examples/tinyirb.rb
rb-readline-0.5.4 examples/tinyirb.rb
sc_core-0.0.7 test/dummy/vendor/bundle/ruby/2.2.0/gems/rb-readline-0.5.3/examples/tinyirb.rb
rb-readline-0.5.3 examples/tinyirb.rb
rb-readline-r7-0.5.2.0 examples/tinyirb.rb
rb-readline-0.5.2 examples/tinyirb.rb
rb-readline-0.5.1 examples/tinyirb.rb
rb-readline-0.5.0 examples/tinyirb.rb