Sha256: c3eaba1b63c1a2dd9243a9cd4c27c0734b433a5ed4e6e380a880986f78249a0a

Contents?: true

Size: 185 Bytes

Versions: 5

Compression:

Stored size: 185 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

5 entries across 5 versions & 2 rubygems

Version Path
rb-readline-0.4.2 examples/tinyirb.rb
rb-readline-0.4.1 examples/tinyirb.rb
rb-readline-0.4.0 examples/tinyirb.rb
rdp-rb-readline-0.2.0.1 examples/tinyirb.rb
rdp-rb-readline-0.2.0 examples/tinyirb.rb