[ruby-gnome2-doc-cvs] [Ruby-GNOME2 Project Website] update - tut-gtk2-glib-iochannels

アーカイブの一覧に戻る

ruby-****@sourc***** ruby-****@sourc*****
2009年 2月 2日 (月) 23:52:26 JST


-------------------------
REMOTE_ADDR = 74.15.84.244
REMOTE_HOST = 
        URL = http://ruby-gnome2.sourceforge.jp/hiki.cgi?tut-gtk2-glib-iochannels
-------------------------
@@ -50,8 +50,8 @@
    exit(0)
  end
 
- GLib::IOChannel.open(filename, "r") do |file|   # Open for reading.
-   file.each { |line| puts line }     # Read and print all lines
+ GLib::IOChannel.open(filename, "r") do |ioc|   # Open for reading.
+   ioc.each { |line| puts line }     # Read and print all lines
  end                                  # Automatically close.
 
 Currently there's trouble in the "error handling" land. This time GLib::IOChannel uses the erors belonging to GLib::FileError. As I have already said unless GLib::IOChannel would offer some improvement or other benefit, it seems it is not worth the troubles it causes to us users as well as developers.




ruby-gnome2-cvs メーリングリストの案内
アーカイブの一覧に戻る