Following software and libraries are required in order to use ruby/gtk:
After installation of all above packages, you can check whether Ruby/Gtk works correctly. sample/test directory in ruby-gtk distribution contains some example scripts.
For example, you can run test.rb by typing following command:
If your ruby/gtk is properly installed, you will see a window like below.
ruby-gtk contains testgtk.rb in sample/testgtk/ directory. This is ruby/gtk version of testgtk which is originally distributed with Gtk+ library. Though testgtk.rb is not yet accomplished, it is very useful example of ruby/gtk scripting. The latest version of testgtk.rb is found at http://www.ueda.info.waseda.ac.jp/~igarashi/ruby/gtk.html.en
ruby-gtk also includes gtkbrows.rb in doc/ directory. This is a class browser for ruby-gtk. This browser shows class hierarchy, list of methods and constants defined at each class, etc. This browser helps greatly in ruby-gtk programming and necessary until reference manual is completed.