Sha256: 9c79471debbade511b366f124f828c6779b8e60a7f32de1c847f0455656297d6

Contents?: true

Size: 557 Bytes

Versions: 9

Compression:

Stored size: 557 Bytes

Contents

#!/usr/bin/env ruby

if File.symlink?(__FILE__)
  lib = File.expand_path('../../lib/ffi-tk', File.readlink(__FILE__))
else
  lib = File.expand_path('../../lib/ffi-tk', __FILE__)
end

require lib

Tk.init

begin
  require 'readline'

  while line = Readline.readline('> ', true)
    begin
      p eval(line)
    rescue => ex
      puts "#{ex.class}: #{ex}", *ex.backtrace
    end
  end
rescue LoadError
  while line = $stdin.gets
    line.strip!

    begin
      p eval(line)
    rescue => ex
      puts "#{ex.class}: #{ex}", *ex.backtrace
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
ffi-tk-2010.08.23 bin/rwish
ffi-tk-2010.08 bin/rwish
ffi-tk-2010.06 bin/rwish
ffi-tk-2010.03 bin/rwish
ffi-tk-2010.02 bin/rwish
ffi-tk-2010.01 bin/rwish
ffi-tk-2010.01.02 bin/rwish
ffi-tk-2009.12.14 bin/rwish
ffi-tk-2009.11.29 bin/rwish