ログインして、InfoQのすべての体験をアンロックしましょう!お気に入りの著者やトピックの最新情報を入手し、コンテンツと交流し、限定リソースをダウンロードできます。 どうすればRubyにプロパティを追加できるだろうか?そこで、組み込みDSLの実装に ...
As a system grows in scale, redundant code consisting of endless similar methods becomes a significant maintenance burden for developers. For example, every time you ...
Do you need to write Ruby code that is easy to maintain and change? With metaprogramming, you can produce elegant and clean programs. Once the domain of expert ...
リポジトリをfork 問題を解くためのブランチを切って、今後メイン作業をそのブランチで行う masterを使わない理由は、fork元のmasterに修正のプルリクを送りたいときに、解いた問題のコミットが紛れると邪魔だからです 定期的に作業用ブランチにmasterをmergeし ...
When Yukihiro “Matz” Matsumoto created Ruby in the mid-1990s he did so with programmer productivity as a priority. The result was a powerful, flexible language with an elegant syntax that reads and ...
A metaprogram is a program that generates other programs or program parts. Hence, metaprogramming means writing metaprograms. Many useful metaprograms are available for Linux; the most common ones ...
Este proyecto implementa un mecanismo de composición de comportamiento basado en Traits utilizando técnicas de metaprogramación en Ruby. Los Traits permiten reutilizar comportamiento entre clases de ...