[ruby-gnome2-doc-cvs] [Ruby-GNOME2 Project Website] update - tut-gtk2-dnd-native-treev

Back to archive index

ruby-****@sourc***** ruby-****@sourc*****
2012年 12月 16日 (日) 07:50:35 JST


-------------------------
REMOTE_ADDR = 184.145.81.223
REMOTE_HOST = 
        URL = http://ruby-gnome2.sourceforge.jp/hiki.cgi?tut-gtk2-dnd-native-treev
-------------------------
@@ -47,7 +47,7 @@
 # (10.3.1.1.1)
 :Office Supplies Array Initialization Module
 
-    In the 'treeview-built-in-dnd.rb' example program we use auxiliary initialization application dependent module. If this module were useful also in many other tutorial example programs it would be wise to place it in a common directory or folder, along with our 'HikiGtk' module file (hiki-gtk.rb). However, we decided to place it in the same directory where also the example 'treeview-built-in-dnd.rb' program resides. This requires in the example program we tell Ruby interpreter to also include our current directory, from which we are going to run our example code, in the load path (look for the declarative statement ((*"$: << '.'"*)) at the beginning of the example program). Indeed, you could have as well specify the full path in the 'require' declarative instead, however, I wanted to repeat the idiom expanding the load path, so you get used to it, because it is very convenient, when you use module files in other directories.
+    In the 'treeview-built-in-dnd.rb' example program we use auxiliary initialization application dependent module. If this module were useful also in many other tutorial example programs it would be wise to place it in a common directory or folder, along with our 'HikiGtk' module file (hiki-gtk.rb). However, we decided to place it in the same directory where also the example 'treeview-built-in-dnd.rb' program resides. This requires in the example program we tell Ruby interpreter to also include our current directory, from which we are going to run our example code, in the load path (look for the declarative statement ((*"$: << '.'"*)) at the beginning of the example program). Indeed, you could have as well specified the full path in the 'require' declarative instead, however, I wanted to repeat the idiom expanding the load path, so you get used to it, because it is very convenient, when you use module files in other directories.
 
 
     Following is the module file, which you should copy in your working directory along with the program example:




ruby-gnome2-cvs メーリングリストの案内
Back to archive index