JavaScriptã§Rubyã®MixInã®ãããªãã®ãå®ç¾ããæ¹æ³ããµã¨æãã¤ããã®ã§æ¸ãã¦ã¿ãã æ¢ã«èª°ããä½å¦ãã§æ¸ãã¦ãããããããªããã¨ããããã //MixInç¨ function MixIn(){} //MixInã®æºåã»æ¢ã«MixInæ¸ã§ããã°falseããMixInã®æºåå®äºã§ããã°trueãè¿ã MixIn.readyMixIn=function(){ var mixInMethod=arguments.callee.caller; if(!this._mixIn){this._mixIn={};} var check=this._mixIn[mixInMethod]; if(!this._mixIn[mixInMethod]){this._mixIn[mixInMethod]=true;} return !check; } //ã¦ã¼ãã£ãªãã£ã¡ã½ãã追å MixIn.
{{#tags}}- {{label}}
{{/tags}}