ZENET大貫です。 今回は、業務で遭遇した Ruby の非推奨警告 「warning: literal string will be frozen in the future」 の回避方法について書いていきたいと思います。 目次 非推奨警告とは何か warning: literal string will be frozen in the futureについて 「dup」を使い warning: literal string will be frozen in the future を回避する方法 「dup」とは何か 「dup」と「clone」の違い まとめ 非推奨警告とは何か Rubyでは…