Sha256: 653f8034b0384beb4145b8649901ea3227006e451654ff89440a1faffa203bb0

Contents?: true

Size: 232 Bytes

Versions: 7

Compression:

Stored size: 232 Bytes

Contents

require "readline"

def run(code)
  Readline.readline

  code.each_line do |line|
    line = line.strip
    next if line.empty?

    puts "> #{line}"
    sleep 5
    eval(line)
    puts ""
    sleep 5
  end

  Readline.readline
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
rubicure-0.4.13 examples/common.rb
rubicure-1.0.0.pre3 examples/common.rb
rubicure-1.0.0.pre2 examples/common.rb
rubicure-1.0.0.pre1 examples/common.rb
rubicure-0.4.12 examples/common.rb
rubicure-0.4.11 examples/common.rb
rubicure-0.4.10 examples/common.rb