â ä»ã®è¨èªã«ãªãã人ãRubyã«èºã n ã®ãã¤ã³ã Ruby ã¯ã¡ãã£ã¨ç¹æ®ãªããã°ã©ãã³ã°è¨èªãªã®ã§ï¼ä»ã®è¨èªã«ãªãã人ã¯ï¼ã¡ãã£ã¨æ¸æãããããã¾ããï¼ãããªèºããããªãã¤ã³ããç´¹ä»ãã¦ããã¾ãï¼ â¡ãªãã¸ã§ã¯ãæå Ruby ã¯ãããã¿ã¤ãåãªãã¸ã§ã¯ãæåã§ãï¼ãªãã¸ã§ã¯ãã«ã¡ã½ãããå®ç¾©ãï¼ããã dup ã«ãã£ã¦è¤è£½ããªãããªãã¸ã§ã¯ããä½ã£ã¦ããã¾ãï¼ a = Object.new def a.foo p "foo" end b = a.dup â¡è¤æ°ã®ã¡ã½ããå®ç¾© è¤æ°ã®ã¡ã½ãããå®ç¾©ããå ´åï¼ruby ã§ã¯ï¼def ã§ã¯ãªãï¼method_missing ã¨ããæ©è½ã使ãã®ãä¸è¬çã§ãï¼ def a.method_missing mid, *args case mid when :bar p "bar" when :baz p "baz" end end ç°¡åã«ï¼bar
{{#tags}}- {{label}}
{{/tags}}