Back to Browse

How To Write Macros in Ruby

2.8K views
Jul 20, 2015
14:48

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: https://pragmaticstudio.com/tutorials/ruby-macros

Download

1 formats

Video Formats

360pmp418.9 MB

Right-click 'Download' and select 'Save Link As' if the file opens in a new tab.

How To Write Macros in Ruby | NatokHD