èªåã®èããåçåè¨èªã®ä¸çªã®åé¡ç¹ã¯ã log_putsï¼out, msgï¼ ããã®outã«ä½ãå
¥ããããã®ããä½ãå
¥ãããããã®ãç°¡åã«èª¿ã¹ãæ¹æ³ããªãã¨ããç¹ã§ãã ããã¯å
¨ã以ã£ã¦ãã®éãã ãªããç¾æç¹ã§åçã«ä½¿ããã¦ããã¡ã½ãããå²ãåºãã¨ãã£ã¿ã IDE ã¯ãªã(ã¯ã)ã®ã§æ¬ ç¹ã¨è¨ã£ã¦ãããã®ã§ã¯ãªãã ãããï¼(éçåè¨èªæ好è
æ¯æ´) ã¼ãã£ã¨èãã¦ããã ãã©ã¤ã³ã¿ã¼ãã§ã¤ã¹ç¸ãã£ã¦ããã®ã¯ã©ããªãã ããã ç¾ç¶ã®ã class Log ... def puts(obj) ... end ... endãã class Log ... def puts([:to_s] obj) ... end ... endã¡ã½ããç¸ããã¢ããã¼ã·ã§ã³ã¿ãããªï¼ã¨ãã module Outable def to_s ... end end class Log ... def puts(Outp
{{#tags}}- {{label}}
{{/tags}}