At the Ruby tab here are some commands you might try
print "hello" + "\n"
bar=46; print "%s" % bar, "\n"
"abc".each_byte{|c| printf "<%c>", c}; print "\n"
"a\nb\nc\n".each_line{|l| print l}
for l in "a\nb\nc\n" ; print l ; end
print "%s" % "abcdef".length
The GUI interface used is RubyWebDialogs
RubyWebDialogs is a platform independent graphical user interface for Ruby applications. It generates HTML and serves it with an internal HTTP server, so you can use your favorite web browser as the front end for your Ruby application. All this means, that it can be used on almost every platform, like Ruby itself. http://www.erikveen.dds.nl/rubywebdialogs/
Install rwdtinker
unzip this applet in the directory where you put rwdtinker
Start the program by typing
ruby init.rb
Then point your web browser to:
http://localhost:7701/
The rwdtinker framework is used by:
Spliting the source code and the gui code into atomic parts and use init.rb to merge the parts together.
With the framework, we are able to ship a "plugin" or as I calling them "applet" that can be dropped into a directory and installed automatically. Also uninstalled. I am calling this framework Tinker, so the core program I call rwdtinker. My wife, Charlotte. suggested the name. It relates to the the "Tinker Toys" that has blocks and dowls and shapes that can be assembled by children and take different shapes. Without the word toy, it reminds us if the older English meaning of "a person who repairs pots and household devices by soldering and hammering.
The delivered applet is setup in the required directory structure with code configueration gui including help files location of documentation rwd_files = where documention for the applet can go. installed = a inf file that lists the manifest of files
This package is zipped up and uploaded as a file like rwdashedule-0.2.zip
The enduser who has the rwdtinker program drops the zip file into a directory called zips. I have parts of rwdtinker now (for Linux) that can install it automatically and remove it (based on the .inf file)
Requirements: RubyWebDialogs - I am using 0.1.1 2004-12-5 Ruby I am using version 1.8.2 I have tested this under Linux-Debian kernel 2.6.9 PROBLEMS: you should consult what beginning 3 characters for you files. don't type in the extension .sch Closing the browser doesn't terminate the application. You have to use the application's close-button And terminating the application doesn't terminate the application when running in network mode. You just log out. Don't use the back-button of the browser! Strange and unpredictable things may and will happen! Steven Gibson steven@superant.com http://rwdapplications.rubyforge.org/wiki/wiki.pl