How To Write Macros in Ruby

Sdílet
Vložit
  • čas přidán 1. 06. 2024
  • In Rails you use class-level declarations such as has_many, belongs_to, and other so-called “macros” all the time. Developers often assume these are magic. They're not! It's just Ruby code.
    In this short video tutorial we recreate a simplified version of the has_many declaration from scratch so you understand how to apply this same powerful technique in your own Ruby code!
    To see more and get the source code, go to:
    pragmaticstudio.com/tutorials...
  • Věda a technologie

Komentáře • 11