本記事ではメタプログラミングについてふれます。メタプログラミングは、Rubyの文法の中でも、かなり応用の部類に入り、Procなどと同様にかなり使いこなすのが難しい文法です。※ちなみにProcについてはこちらの記事で解説しています。 https://reisuta.com/block-proc/ そもそもメタプログラミングはかなり応用の文法なので、Rubyの基礎の文法の解説は、下記の動画などをご参考ください。 https://youtu.be/hMaSBbtuQnY メタプログラミングの実際の使用シーンは限 ...