ruby-****@sourc*****
ruby-****@sourc*****
2012年 11月 5日 (月) 08:48:25 JST
------------------------- REMOTE_ADDR = 184.145.95.170 REMOTE_HOST = URL = http://ruby-gnome2.sourceforge.jp/hiki.cgi?tut-gtk2-mnstbs-mnui ------------------------- @@ -318,7 +318,7 @@ Since these procedures are needed in our previous steps, we are required to place them high enough in our program listing, to be visible at the time they are used. To be on the safe side we will place the code creating these procs just before our step #1 above. Following is the code segment presenting the entire step #4 in our program example: # (4. menu building step) - # These lambdas, or procs can indeed be different for ech menu item + # These lambdas, or procs can indeed be different for each menu item t1_test1_lambda = lambda {|p, w| puts "item: #{p} selected; w=#{w.class}" } t1_test2_lambda = lambda {|p, w| puts "item: #{p} selected; w=#{w.class}" } ss1_item_1_lambda = lambda {|p, w| puts "item: #{p} selected; w=#{w.class}" } @@ -368,7 +368,7 @@ end (4. menu building step) - # These lambdas, or procs can indeed be different for ech menu item + # These lambdas, or procs can indeed be different for each menu item t1_test1_lambda = lambda {|p, w| puts "item: #{p} selected; w=#{w.class}" } t1_test2_lambda = lambda {|p, w| puts "item: #{p} selected; w=#{w.class}" } ss1_item_1_lambda = lambda {|p, w| puts "item: #{p} selected; w=#{w.class}" }