2008-01-09 15:51:08 +0900 (261d); rev 19 ããã¯è稿ã§ãã ãããæ£å¼ãªã¨ããã«ç§»ãäºå®ã 対象ã¨ããèªè æ¬ç¨¿ã¯ä»¥ä¸ã®ãããªèªè ã対象ã«ãã¦ãã¾ãã Ruby ã®æ¡å¼µã©ã¤ãã©ãªãæ¸ãããã¨ããªã C ããã°ã©ãã³ã°ããããªãã«ã§ãã Ruby ããã°ã©ãã³ã°ããããªãã«ã§ãã 2 ã«é¢ãã¦ã ããã¤ã³ã¿ã£ã¦ä½ï¼ãã¬ãã«ã®äººã¯ä¸å¯ã§ãã æ§é ä½ã¨ãã¤ã³ã¿ãã¡ããã¨ä½¿ã£ã¦ããã°ã©ãã³ã°ã®ã§ãã人ã対象ã¨ãã¾ãã 3 ã«é¢ãã¦ã 以ä¸ã®ããã°ã©ã ã®çµæãã©ããªããã èããã ãã§ãããããã«ãã¦ããã¦ãã ããã class C p self # ä½ã表示ãããï¼ def C.m puts '1' p self end def m puts '2' p self end end C.m # ä½ã表示ãããï¼ C.new.m # ä½ã表示ãããï¼ ãã®ããã¥
{{#tags}}- {{label}}
{{/tags}}