This page should improve with time. Please, keep in mind that I am not a graphics designer and that you are welcome to help if you really think the design is too ugly.
Creating objects and toying with them
This demonstrates how to create simple objects, and calling their methods. Middle-clicking on an object invokes the method list and choosing any method conjures up a satellite. Clicking on a satellite calls the Ruby method with no argument. Dropping a single element calls it with that element as an argument. Dropping a set (i.e. a enhanced array) containing several elements amounts to calling the method with all elements of the set expanded as several arguments.
In the video, the following steps are performed:
Create two numbers
Create a string
Create a satellite for Fixnum#succ, and call it with 3
Create a satellite for String#
Call it with 2, it yields 108 (ascii for 'l')
Call it with 3, it yields 108 (ascii for 'l')
Call it with 4, it yields 111 (ascii for 'o')
Create a set
Put 2 and 3 in it, and use it to call Hello[2,3] which yields "llo"
Ruby code writing is possible through the use of a RubyCode object, that can be compiled into a Proc object. Left-clicking on it calls its call method. RubyCode objects prompt for Ruby code at creation time.
This video demonstrates:
A "Hello world!" program
A script that runs shell commands when dropped as a string. The result is stored into a StringSet objet.
that writing crappy code doesn't crash the application.