metaprogramming

Installation
SKILL.md

Ruby Metaprogramming

Guide to Ruby metaprogramming techniques, DSL creation, and dynamic code generation.

When to Use Metaprogramming

Use metaprogramming when:

  • Building DSLs for configuration or testing
  • Reducing repetitive code patterns
  • Creating flexible APIs
  • Implementing frameworks

Avoid when:

  • Simple methods would suffice
  • Code clarity is more important than conciseness
  • Debugging would become difficult

Dynamic Method Definition

Related skills

More from bastos/ruby-plugin-marketplace

Installs
1
GitHub Stars
2
First Seen
Apr 16, 2026