yield ã£ã¦ããã¾ãã¡åããã«ããã§ããããã ããããªãâ調ã¹ãâå¿ããâ調ã¹ãâå¿ããâ⦠ã®ã¨ã³ãã¬ã¹ã«ã¼ãããæãåºãããã«ãèªåãªãã«ã¾ã¨ãããã¨ã«ãã¾ããã ããã㯠ãããªã yield ãããªãããï¼ã¨ããæãã§ãããææ ¢ãã¦è¦ã¦ã¿ã¦ãã ããã â¦ãã»ã¤ã»ã¯ãRuby ã®ã¡ã½ããã¯ãã¹ã¦ããããã¯ããå¼æ°ã«ãããã¨ãã§ãã¾ãã æè¿ç¥ãã¾ãã(ï¼Ïï¼)ã def hogehoge( x ) return x + 2 end p hogehoge( 3 ) p hogehoge( 5 ){ p "foo" } ãããã¯ã£ã¦ã®ã¯ã{ p "foo" } ã¿ããã« "{" 㨠"}" ã«å²ã¾ãããã¤ãã"do" ã "end" ã§ãããã¿ããã ãã©ã ãããå®è¡ããã¨ã 5 7 ã¨ãªãã¾ãã{ p "foo" } ã¯ã¾ãã£ããã·ã«ãã§ãã (ã»âã») â¦ãã以ä¸ã®ããã«ããã¨
{{#tags}}- {{label}}
{{/tags}}