ããã¥ã¡ã³ããèªã¿è¾¼ãã®ã¯å¤§äºãã¨ãããã¨ã§Railsã¬ã¤ããé ããèªãã§ããåãçµã¿ããã¦ãã¾ãã åç« ãã¨ã«ãï¼Railsã¬ã¤ãã«ã¡ããã¨æ¸ãã¦ããã®ã«ï¼ç¥ããªãã£ãæ©è½ãéã«ã¾ã¨ãã¦ããã¾ãã ä»åã¯ãActive Support ã³ã¢æ¡å¼µã®ç« ã§ãã railsguides.jp deep_dup ãªã³ã¯ã¯ãã¡ã dupã§ã¯ãã³ãã¼ããé åã®ä¸èº«ãgsub!ãªã©ã§å¤åããå ´åãã³ãã¼å ã®é åã®ä¸èº«ã¾ã§å½±é¿ãã¾ãããdeep_dupã§ã¯å½±é¿ãåããªãããã«ã§ãã¾ãã ãã®ãããã¯æå³ãã¬ãã°ãæ··å ¥ããã¦ãã¾ããªãããããã¡ãã¨ç解ãã¦ããå¿ è¦ããããªã¨æãã¾ããã try ãªã³ã¯ã¯ãã¡ã &.ã¨tryã¯ä¼¼ã¦ãã¾ãããåå¨ããªãã¡ã½ãããæå®ããéã«ãåè ã¯NoMethodErrorãè¿ããå¾è ã¯nilãè¿ãã¾ãã &.ã¨try!ã¯æåèªä½ã¯åãããã§ãã ãã ããtry!ã¯&.ã¨æ¯ã¹ã
{{#tags}}- {{label}}
{{/tags}}