ruby-****@sourc*****
ruby-****@sourc*****
2012年 12月 9日 (日) 09:24:26 JST
------------------------- REMOTE_ADDR = 184.145.81.223 REMOTE_HOST = URL = http://ruby-gnome2.sourceforge.jp/hiki.cgi?tut-gtk2-dnd-intro ------------------------- @@ -525,3 +525,6 @@ end DnDWindow.new("Dragging a Button Onto a Label") + +{{br}} +Note all the instance methods in our DnDWindow class are made private, that is because all of them are invoked internally, and nobody should be allowed to call them explicitly on DnDWindow object. If you are not familiar with OOP, do not worry about the 'private' directive, you can omit it in your programs and all will work just fine, the only drawback, will be that your code will not conform to strict OO conventions, and will provide ways to abuse your code, should you deploy it to the world at large.