2011å¹´01æ08æ¥23:09 Ruby Rubyã§ã¡ã¿ããã°ã©ãã³ã° ãæé»çã«å¼ã°ããto_procã¡ã½ãã å æ¥ããããªæãã®å¦çã«ééãã¾ãããã¯ã¦ããä½ãããããã»ã»(´・Ïï½¥ï½) ï¾ï¾ï½¶ï½°ï¾ (1..5).each(&method(:puts)) ã¨æã£ã¦èª¿ã¹ãã®ã§ã¾ã¨ãã¦ããã¾ãããã®å¦çãç解ã§ããã°ä¸äººåã§ãããã£ã¨ã ãããã¯ã¯ãªãã¸ã§ã¯ãã§ã¯ãªã Ruby ã§ã¯å¤§æµã®ãã®ããªãã¸ã§ã¯ãã§ããããªãã¸ã§ã¯ãã§ã¯ãªããã®ãä¸é¨ããã¾ãããããã¯ããã®ä¸ã¤ã§ãã ä¾ãã°ãããªé¢¨ã«ãããã¯ãå®ç¾©ãããã¨ã¯åºæ¥ã¾ããã block = { "test" } # in:1: odd number list for Hash ãããã Ruby ã®æ§æã§ã¯ããã·ã¥ã¨ãã¦æ±ããããããããã¯ãç´æ¥çæãããã¨ã¯åºæ¥ã¾ãããBlock.new ã¿ãããªæ§æãç¡ãã®ã§ããããã¯ã¯ ti
{{#tags}}- {{label}}
{{/tags}}