4æ³ã®é·å¥³ã¨ãªã»ãã§éã¶ããã«ãªãã¾ãããæãã§ã²ã£ããè¿ãã®ã¯ã§ããã®ã§ãããããã¡ã«æãã¨ããã®ãé£ããããã§ãããããããã¡ãã²ã£ããè¿ããããã¨æãã®ã§ãããé·å¥³ã¯æ°ã¥ãã¾ãããç§ãããã¦å£ã«åºããã常ã«å§åãã¦ãã¾ããç½é»ã¯ã£ããããªãã°ã¬ã¼ãªãªã»ãã楽ããã§ãã¾ãã ãã¦ãRubyã®ç¹å¾´ã®ã²ã¨ã¤ã«ãã¡ã¿ããã°ã©ãã³ã°ãããããããã¨ãæãããã¾ãããããªã»ãã®è©±ã¯ä¸åé¢ä¿ãªãã®ã§ãå¿ãã¦ãã ããã Rubyã®ãªãã¬ã¯ã·ã§ã³è§£èª¬ï¼evalæã®ã¯ãªãï¼ - ãã®ããã°ã¯è¨¼æã§ããªãã ã¡ã¿ããã°ã©ãã³ã°ãããã¨ãè©ããã便ç§ã®è§£æ¶ãªã©ãããããªå¹æãããã¾ãããä»åã¯ããã®ãã¡ã®ã²ã¨ã¤ãç´¹ä»ãããã¨æãã¾ããæãæµ®ãã¹ã¦ãã ãããæ¢åã®ã©ã¤ãã©ãªã®ããå¦çã ãå·®ãæ¿ããããä¸ã®ä¾ã§ã¯ãtargetã¡ã½ããã®ä¸ã§ä½¿ããã¦ããFixnum#to_sã¡ã½ãããå·®ãæ¿ãããã®ã§ãããããå·®
2009å¹´06æ28æ¥10:08 Ruby Rubyã®ã¯ã©ã¹åã¯å®ã¯Classã¯ã©ã¹ã®ã¤ã³ã¹ã¿ã³ã¹ å°ãåã«æ¸ãããããã¬ãã«ã§ã¡ã½ãããå®ç¾©ããã¨ãã®æåãä¸æè° - (ï¾âï¾)o彡 sasata299's blogã«ã¤ãã¦ãid:faulistããã詳ãã解説è¨äºãæ¸ãã¦ãã ããã¾ããããããã¨ããããã¾ãï¼ï¼ Rubyã®ãããã¬ãã«ã®ã¡ã½ããã®ä¸æè° - As Sloth As Possible "Object"ã¯Classã¯ã©ã¹ã®ã"Kernel"ã¯Moduleã¯ã©ã¹ã®ã¤ã³ã¹ã¿ã³ã¹ãªãã ãã©ãClassã¯ã©ã¹ã¯Moduleã¯ã©ã¹ã®ãModuleã¯ã©ã¹ã¯Objectã¯ã©ã¹ã®ãµãã¯ã©ã¹ã«ãªã£ã¦ãããã¤ã¾ããä¸ã®ã³ã¼ãä¸ã§ã¯"self"ã"Object"ã"Kernel"ããã¿ããªObjectã¯ã©ã¹(ãããã®ãµãã¯ã©ã¹)ã®ã¤ã³ã¹ã¿ã³ã¹ã¨è¨ããã ããªãã»ã©ãªãã»ã©ããã¨æã£ããããªã®ã§ã
[ruby-core:18437] Class as second-generation singleton class ãèªãã å½åã¯ãç¹ç°ã¯ã©ã¹ã®ã¯ã©ã¹ã Class ã£ã¦ãã¨ã§ããããï¼ã¨æã£ãã®ã§ãããæ¹ãã¦èª¿ã¹ã¦ã¿ãã¨ã©ãããå¿ ããããã¹ã¦ã®ç¹ç°ã¯ã©ã¹ã Class ã«å±ããããã§ã¯ãªãããã§ï¼ãã¤ã確èªããéç¨ã§ãid:sumim:20080111:p1 ã®ééããè¦ã¤ãã¦ãã¾ã£ãããid:sumim:20061019:p1 ã®è¬ã解ããããããã®ã§ï¼ããã®æ©ä¼ã«è¡¨é¡ã®ä»¶ã«ã¤ãã¦ãã£ããå³ã«ãã¦èªåãªãã«ç解ãæ´çãã¦ãããã¨ã«ã é¢é£ï¼ Ruby1.9 ã®ã¯ã©ã¹ã®ã¡ã¿é層ãæ´çãã ï¼ - Smalltalkã®tã¯å°æåã§ã Ruby1.9 ã®ã¯ã©ã¹ã®ã¡ã¿é層ãæ´çãã ï¼ - Smalltalkã®tã¯å°æåã§ã Ruby ã§ãã¯ã©ã¹ã®ã¡ã¿é層ã®æ å ±ãå¾ãéã®æ³¨æã¨ãã¦ãRu
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}